mirror of
https://github.com/WordPress/WordPress.git
synced 2025-04-08 04:55:50 +02:00
Add titles to toolbar W and Account items. props DrewAPicture, see #19404.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9fdd8c9301
commit
f54aba9b06
@ -76,6 +76,9 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
|||||||
'id' => 'wp-logo',
|
'id' => 'wp-logo',
|
||||||
'title' => '<span class="ab-icon"></span>',
|
'title' => '<span class="ab-icon"></span>',
|
||||||
'href' => admin_url( 'about.php' ),
|
'href' => admin_url( 'about.php' ),
|
||||||
|
'meta' => array(
|
||||||
|
'title' => __('About WordPress'),
|
||||||
|
),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
if ( is_user_logged_in() ) {
|
if ( is_user_logged_in() ) {
|
||||||
@ -144,6 +147,7 @@ function wp_admin_bar_my_account_menu( $wp_admin_bar ) {
|
|||||||
'href' => $profile_url,
|
'href' => $profile_url,
|
||||||
'meta' => array(
|
'meta' => array(
|
||||||
'class' => $class,
|
'class' => $class,
|
||||||
|
'title' => __('My Account'),
|
||||||
),
|
),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user