WordPress.org

Make WordPress Core

Ticket #19815: 19815.7.diff

File 19815.7.diff, 503 bytes (added by helenyhou, 9 years ago)

Only enqueue on theme-install search tab

  • wp-admin/theme-install.php

     
    3333
    3434add_thickbox();
    3535wp_enqueue_script( 'theme-preview' );
    36 wp_enqueue_script( 'theme' );
    3736
     37if ( 'search' == $tab )
     38        wp_enqueue_script( 'theme' );
     39
    3840$body_id = $tab;
    3941
    4042do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.