Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18617 r20476  
    153153                check_admin_referer('upgrade-theme_' . $theme);
    154154
    155                 add_thickbox();
    156                 wp_enqueue_script('theme-preview');
     155                wp_enqueue_script( 'customize-loader' );
     156
    157157                $title = __('Update Theme');
    158158                $parent_file = 'themes.php';
    … …  
    200200
    201201                check_admin_referer('install-theme_' . $theme);
    202                 $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false) ) ); //Save on a bit of bandwidth.
     202                $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.
    203203
    204204                if ( is_wp_error($api) )
    205205                        wp_die($api);
    206206
    207                 add_thickbox();
    208                 wp_enqueue_script('theme-preview');
     207                wp_enqueue_script( 'customize-loader' );
     208
    209209                $title = __('Install Themes');
    210210                $parent_file = 'themes.php';
    … …  
    231231                $file_upload = new File_Upload_Upgrader('themezip', 'package');
    232232
     233                wp_enqueue_script( '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.