Ticket #42184: 42184.1.diff
File 42184.1.diff, 1.5 KB (added by , 7 years ago) |
---|
-
src/wp-admin/js/updates.js
1806 1806 } else if ( 'delete-theme' === job.action && 'themes' === pagenow ) { 1807 1807 $message = $( '.theme-actions .delete-theme' ); 1808 1808 } 1809 } else if ( 'customize' === pagenow ) { 1810 wp.customize.notifications.remove( 'theme_installing' ); 1811 if ( 'install-theme' === job.action ) { 1812 $message = $( '[data-slug="' + job.data.slug + '"]' ); 1813 } else if ( 'update-theme' === job.action ) { 1814 $message = $( '[data-slug="' + job.data.slug + '"]' ).find( '.update-message' ); 1815 } else if ( 'delete-theme' === job.action ) { 1816 $message = $( '.theme-actions .delete-theme' ); 1817 } 1809 1818 } else { 1810 1819 $message = $updatingMessage; 1811 1820 } -
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