Ticket #42184: 42184.2.diff
File 42184.2.diff, 2.0 KB (added by , 7 years ago) |
---|
-
src/wp-admin/js/updates.js
1193 1193 $button = $( '.theme-install[data-slug="' + response.slug + '"]' ); 1194 1194 $card = $button.closest( '.theme' ).addClass( 'theme-install-failed' ).append( $message ); 1195 1195 } 1196 $( '.wp-full-overlay' ).removeClass( 'customize-loading' );1196 wp.customize.notifications.remove( 'theme_installing' ); 1197 1197 } else { 1198 1198 if ( $document.find( 'body' ).hasClass( 'full-overlay-active' ) ) { 1199 1199 $button = $( '.theme-install[data-slug="' + response.slug + '"]' ); … … 1797 1797 } else if ( 'delete-theme' === job.action && 'themes' === pagenow ) { 1798 1798 $message = $( '.theme-actions .delete-theme' ); 1799 1799 } 1800 } else if ( 'customize' === pagenow ) { 1801 wp.customize.notifications.remove( 'theme_installing' ); 1802 if ( 'install-theme' === job.action ) { 1803 $message = $( '.theme-install[data-slug="' + job.data.slug + '"]' ); 1804 } else if ( 'update-theme' === job.action ) { 1805 $message = $( '[data-slug="' + job.data.slug + '"]' ).find( '.update-message' ); 1806 } else if ( 'delete-theme' === job.action ) { 1807 $message = $( '.theme-actions .delete-theme' ); 1808 } 1800 1809 } else { 1801 1810 $message = $updatingMessage; 1802 1811 } -
src/wp-includes/class-wp-customize-manager.php
402 402 if ( current_user_can( 'install_themes' ) || current_user_can( 'update_themes' ) ) { 403 403 require_once ABSPATH . '/wp-admin/includes/update.php'; 404 404 add_action( 'customize_controls_print_footer_scripts', 'wp_print_admin_notice_templates' ); 405 add_action( 'customize_controls_print_footer_scripts', 'wp_print_request_filesystem_credentials_modal' ); 405 406 } 406 407 } 407 408