diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index f953407568..d4fc8e1709 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -242,11 +242,11 @@ function install_themes_updated($page = 1) { } add_action('install_themes_upload', 'install_themes_upload', 10, 1); -function install_themes_upload() { +function install_themes_upload($page = 1) { ?>

-
+ @@ -520,7 +520,7 @@ function install_theme_information() { } -add_action('install_themes_upload', 'upload_theme'); +add_action('install_themes_do_upload', 'upload_theme'); function upload_theme() { if ( ! ( ( $uploads = wp_upload_dir() ) && false === $uploads['error'] ) ) diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 518e45e6af..eeab3516b9 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -35,7 +35,7 @@ $tabs['featured'] = __('Featured'); $tabs['new'] = __('Newest'); $tabs['updated'] = __('Recently Updated'); -$nonmenu_tabs = array('install', 'theme-information', 'upload'); //Valid actions to perform which do not have a Menu item. +$nonmenu_tabs = array('install', 'theme-information', 'do_upload'); //Valid actions to perform which do not have a Menu item. $tabs = apply_filters('install_themes_tabs', $tabs ); $nonmenu_tabs = apply_filters('install_themes_nonmenu_tabs', $nonmenu_tabs);