From 0fe3ffaf59edc5b259d87e363632c96482d4406b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 26 Feb 2014 07:36:05 +0000 Subject: [PATCH] Remove title attributes on the fly when [27280] makes them incorrect. see #17703. git-svn-id: https://develop.svn.wordpress.org/trunk@27281 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/updates.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 64569df8d3..40b04e3c2c 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -18,12 +18,14 @@ window.wp = window.wp || {}; if ( count < 0 ) { return; } + $( '#wp-admin-bar-updates .ab-item' ).removeAttr( 'title' ); $elem.text( count ); $elem = $( 'a[href="update-core.php"] .update-plugins' ); $elem.each( function( index, elem ) { elem.className = elem.className.replace( /count-\d+/, 'count-' + count ); } ); + $elem.removeAttr( 'title' ); $elem.find( '.update-count' ).text( count ); if ( 'plugin' === upgradeType ) {