Changeset 29960
- Timestamp:
- 10/18/2014 07:54:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r28254 r29960 16 16 count = $elem.text(); 17 17 count = parseInt( count, 10 ) - 1; 18 if ( count < 0 ) {18 if ( count < 0 || isNaN( count ) ) { 19 19 return; 20 20 } … … 33 33 pluginCount = $elem.find( '.plugin-count' ).eq(0).text(); 34 34 pluginCount = parseInt( pluginCount, 10 ) - 1; 35 if ( pluginCount < 0 ) {35 if ( pluginCount < 0 || isNaN( pluginCount ) ) { 36 36 return; 37 37 }
Note: See TracChangeset
for help on using the changeset viewer.