WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/31/17 01:32:15 (3 weeks ago)
Author:
obenland
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r42039 r42046  
    42774277        if ( ! is_multisite() && ( current_user_can( 'install_themes' ) || current_user_can( 'update_themes' ) || current_user_can( 'delete_themes' ) ) ) { 
    42784278            wp_enqueue_script( 'updates' ); 
     4279            wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 
     4280                'totals' => wp_get_update_data(), 
     4281            ) ); 
    42794282        } 
    42804283    } 
Note: See TracChangeset for help on using the changeset viewer.