Avoid displaying a negative number of plugin updates in admin menu.
fixes #28073. git-svn-id: https://develop.svn.wordpress.org/trunk@28254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3e482eb905
commit
de80cc6780
@ -32,7 +32,7 @@ window.wp = window.wp || {};
|
||||
$elem = $( '#menu-plugins' );
|
||||
pluginCount = $elem.find( '.plugin-count' ).eq(0).text();
|
||||
pluginCount = parseInt( pluginCount, 10 ) - 1;
|
||||
if ( count < 0 ) {
|
||||
if ( pluginCount < 0 ) {
|
||||
return;
|
||||
}
|
||||
$elem.find( '.plugin-count' ).text( pluginCount );
|
||||
|
Loading…
Reference in New Issue
Block a user