From 586bd7982c8ec316449dc66f7d38fa8de0dba09f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Feb 2015 20:20:27 +0000 Subject: [PATCH] Toolbar: Remove title attributes from 'About WordPress', 'Add New', and 'My Account' items. props afercia. fixes #31324. Built from https://develop.svn.wordpress.org/trunk@31456 git-svn-id: http://core.svn.wordpress.org/trunk@31437 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 11 ++--------- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index c5be836236..05db8a7fee 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -100,11 +100,8 @@ function wp_admin_bar_render() { function wp_admin_bar_wp_menu( $wp_admin_bar ) { $wp_admin_bar->add_menu( array( 'id' => 'wp-logo', - 'title' => '', + 'title' => '' . __( 'About WordPress' ) . '', 'href' => self_admin_url( 'about.php' ), - 'meta' => array( - 'title' => __('About WordPress'), - ), ) ); if ( is_user_logged_in() ) { @@ -113,7 +110,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) { 'parent' => 'wp-logo', 'id' => 'about', '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, 'meta' => array( 'class' => $class, - 'title' => __('My Account'), ), ) ); } @@ -604,9 +600,6 @@ function wp_admin_bar_new_content_menu( $wp_admin_bar ) { 'id' => 'new-content', 'title' => $title, 'href' => admin_url( current( array_keys( $actions ) ) ), - 'meta' => array( - 'title' => _x( 'Add New', 'admin bar menu group label' ), - ), ) ); foreach ( $actions as $link => $action ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 6d0ea38c33..26f978d06b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31455'; +$wp_version = '4.2-alpha-31456'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.