Ticket #37550: 37550.2.diff
File 37550.2.diff, 1.8 KB (added by , 8 years ago) |
---|
-
src/wp-admin/js/updates.js
350 350 351 351 if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) { 352 352 $updateRow = $( 'tr[data-plugin="' + args.plugin + '"]' ); 353 $message = $updateRow.find( '.update-message' ). addClass( 'updating-message' ).find( 'p' );353 $message = $updateRow.find( '.update-message' ).removeClass( 'notice-error' ).addClass( 'updating-message notice-warning' ).find( 'p' ); 354 354 message = wp.updates.l10n.updatingLabel.replace( '%s', $updateRow.find( '.plugin-title strong' ).text() ); 355 355 } else if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) { 356 356 $card = $( '.plugin-card-' + args.slug ); … … 900 900 }, args ); 901 901 902 902 if ( 'themes-network' === pagenow ) { 903 $notice = $( '[data-slug="' + args.slug + '"]' ).find( '.update-message' ). addClass( 'updating-message' ).find( 'p' );903 $notice = $( '[data-slug="' + args.slug + '"]' ).find( '.update-message' ).removeClass( 'notice-error' ).addClass( 'updating-message notice-warning' ).find( 'p' ); 904 904 905 905 } else { 906 906 $notice = $( '#update-theme' ).closest( '.notice' ).removeClass( 'notice-large' ); … … 2021 2021 if ( 'wp-' + response.update + '-update-success' === event.type ) { 2022 2022 success++; 2023 2023 } else { 2024 itemName = response.pluginName ? response.pluginName : $( '[data-slug="' + response.slug + '"]' ).find( '. theme-titlestrong' ).text();2024 itemName = response.pluginName ? response.pluginName : $( '[data-slug="' + response.slug + '"]' ).find( '.column-primary strong' ).text(); 2025 2025 2026 2026 error++; 2027 2027 errorMessages.push( itemName + ': ' + response.errorMessage );