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
This commit is contained in:
Andrew Nacin 2014-02-26 07:36:05 +00:00
parent 9ddf03c0bb
commit 0fe3ffaf59
1 changed files with 2 additions and 0 deletions

View File

@ -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 ) {