Ticket #42365: 42365.diff
File 42365.diff, 1.3 KB (added by , 8 years ago) |
---|
-
src/wp-admin/js/updates.js
277 277 $appearanceNavMenuUpdateCount = $( 'a[href="themes.php"] .update-plugins' ), 278 278 itemCount; 279 279 280 // There are no counts in the customizer. 281 if ( 'customize' === pagenow ) { 282 return; 283 } 284 280 285 $adminBarUpdates.find( '.ab-item' ).removeAttr( 'title' ); 281 286 $adminBarUpdates.find( '.ab-label' ).text( settings.totals.counts.total ); 282 287 … … 342 347 * Can be 'plugin', 'theme'. 343 348 */ 344 349 wp.updates.decrementCount = function( type ) { 350 // There are no counts in the customizer. 351 if ( 'customize' === pagenow ) { 352 return; 353 } 354 345 355 settings.totals.counts.total = Math.max( --settings.totals.counts.total, 0 ); 346 356 347 357 if ( 'plugin' === type ) { … … 942 951 $notice.find( 'h3' ).remove(); 943 952 944 953 // Add the top-level UI, and update both. 945 $notice = $notice.add( $( '#customize-control- theme-installed_' + args.slug ).find( '.update-message' ) );954 $notice = $notice.add( $( '#customize-control-installed_theme_' + args.slug ).find( '.update-message' ) ); 946 955 $notice = $notice.addClass( 'updating-message' ).find( 'p' ); 947 956 948 957 } else {