Make WordPress Core

Changeset 28254


Ignore:
Timestamp:
05/05/2014 09:38:36 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Avoid displaying a negative number of plugin updates in admin menu.

fixes #28073.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r27281 r28254  
    3333            pluginCount = $elem.find( '.plugin-count' ).eq(0).text();
    3434            pluginCount = parseInt( pluginCount, 10 ) - 1;
    35             if ( count < 0 ) {
     35            if ( pluginCount < 0 ) {
    3636                return;
    3737            }
Note: See TracChangeset for help on using the changeset viewer.