WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/10/2012 02:25:03 AM (8 years ago)
Author:
koopersmith
Message:

Replace all instances of thickbox theme preview with the theme customizer. fixes #20404.

  • Use theme customizer in theme install/update screens.
  • Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
  • Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update.php

    r20267 r20419  
    153153        check_admin_referer('upgrade-theme_' . $theme);
    154154
    155         add_thickbox();
    156         wp_enqueue_script('theme-preview');
     155        wp_customize_loader();
     156
    157157        $title = __('Update Theme');
    158158        $parent_file = 'themes.php';
     
    205205            wp_die($api);
    206206
    207         add_thickbox();
    208         wp_enqueue_script('theme-preview');
     207        wp_customize_loader();
     208
    209209        $title = __('Install Themes');
    210210        $parent_file = 'themes.php';
     
    231231        $file_upload = new File_Upload_Upgrader('themezip', 'package');
    232232
     233        wp_customize_loader();
     234
    233235        $title = __('Upload Theme');
    234236        $parent_file = 'themes.php';
    235237        $submenu_file = 'theme-install.php';
    236         add_thickbox();
    237         wp_enqueue_script('theme-preview');
     238
    238239        require_once(ABSPATH . 'wp-admin/admin-header.php');
    239240
Note: See TracChangeset for help on using the changeset viewer.