X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/42aebe6945a3a60c8f73853bea2c8b202d64a20b..256a3b381f63716209b3527d0a14442ae570c283:/wp-admin/theme-install.php diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 07f42d7e..45fb8708 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -30,11 +30,20 @@ if ( !is_network_admin() ) $submenu_file = 'themes.php'; wp_enqueue_script( 'theme-install' ); -wp_enqueue_script( 'theme' ); +wp_enqueue_script( 'theme-preview' ); $body_id = $tab; -do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information. +/** + * Fires before each of the tabs are rendered on the Install Themes page. + * + * The dynamic portion of the hook name, $tab, refers to the current + * theme install tab. Possible values are 'dashboard', 'search', 'upload', + * 'featured', 'new', or 'updated'. + * + * @since 2.8.0 + */ +do_action( "install_themes_pre_{$tab}" ); $help_overview = '

' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the WordPress.org Theme Directory. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/themes/') . '

' . @@ -66,21 +75,26 @@ get_current_screen()->set_help_sidebar( include(ABSPATH . 'wp-admin/admin-header.php'); ?>
-

- - - views(); ?>
- +