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 ) {
|
if ( count < 0 ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$( '#wp-admin-bar-updates .ab-item' ).removeAttr( 'title' );
|
||||||
$elem.text( count );
|
$elem.text( count );
|
||||||
|
|
||||||
$elem = $( 'a[href="update-core.php"] .update-plugins' );
|
$elem = $( 'a[href="update-core.php"] .update-plugins' );
|
||||||
$elem.each( function( index, elem ) {
|
$elem.each( function( index, elem ) {
|
||||||
elem.className = elem.className.replace( /count-\d+/, 'count-' + count );
|
elem.className = elem.className.replace( /count-\d+/, 'count-' + count );
|
||||||
} );
|
} );
|
||||||
|
$elem.removeAttr( 'title' );
|
||||||
$elem.find( '.update-count' ).text( count );
|
$elem.find( '.update-count' ).text( count );
|
||||||
|
|
||||||
if ( 'plugin' === upgradeType ) {
|
if ( 'plugin' === upgradeType ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user