mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
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:
parent
9ddf03c0bb
commit
0fe3ffaf59
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user