Toolbar: Remove title attributes from 'About WordPress', 'Add New', and 'My Account' items.

props afercia.
fixes #31324.

git-svn-id: https://develop.svn.wordpress.org/trunk@31456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-02-13 20:19:09 +00:00
parent 35ae49f843
commit b52cb0346e
1 changed files with 2 additions and 9 deletions

View File

@ -100,11 +100,8 @@ function wp_admin_bar_render() {
function wp_admin_bar_wp_menu( $wp_admin_bar ) { function wp_admin_bar_wp_menu( $wp_admin_bar ) {
$wp_admin_bar->add_menu( array( $wp_admin_bar->add_menu( array(
'id' => 'wp-logo', 'id' => 'wp-logo',
'title' => '<span class="ab-icon"></span>', 'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>',
'href' => self_admin_url( 'about.php' ), 'href' => self_admin_url( 'about.php' ),
'meta' => array(
'title' => __('About WordPress'),
),
) ); ) );
if ( is_user_logged_in() ) { if ( is_user_logged_in() ) {
@ -113,7 +110,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
'parent' => 'wp-logo', 'parent' => 'wp-logo',
'id' => 'about', 'id' => 'about',
'title' => __('About WordPress'), 'title' => __('About WordPress'),
'href' => self_admin_url( 'about.php' ), 'href' => self_admin_url( 'about.php' ),
) ); ) );
} }
@ -193,7 +190,6 @@ function wp_admin_bar_my_account_item( $wp_admin_bar ) {
'href' => $profile_url, 'href' => $profile_url,
'meta' => array( 'meta' => array(
'class' => $class, 'class' => $class,
'title' => __('My Account'),
), ),
) ); ) );
} }
@ -604,9 +600,6 @@ function wp_admin_bar_new_content_menu( $wp_admin_bar ) {
'id' => 'new-content', 'id' => 'new-content',
'title' => $title, 'title' => $title,
'href' => admin_url( current( array_keys( $actions ) ) ), 'href' => admin_url( current( array_keys( $actions ) ) ),
'meta' => array(
'title' => _x( 'Add New', 'admin bar menu group label' ),
),
) ); ) );
foreach ( $actions as $link => $action ) { foreach ( $actions as $link => $action ) {