mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Customize: Spiff up theme updates
Fixes UI bugs around theme updates in the Customizer. Theme versions now get updated and users are no longer left alone after a successful update. Props rinkuyadav999, celloexpressions for initial patch. Fixes #42365. git-svn-id: https://develop.svn.wordpress.org/trunk@42046 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4276,6 +4276,9 @@ final class WP_Customize_Manager {
|
||||
|
||||
if ( ! is_multisite() && ( current_user_can( 'install_themes' ) || current_user_can( 'update_themes' ) || current_user_can( 'delete_themes' ) ) ) {
|
||||
wp_enqueue_script( 'updates' );
|
||||
wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
|
||||
'totals' => wp_get_update_data(),
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user