diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index 869dd22d19..05491ccffe 100644 --- a/src/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/src/wp-admin/includes/class-wp-theme-install-list-table.php @@ -48,14 +48,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item. - /** - * Filter the tabs shown on the Install Themes screen. - * - * @since 2.8.0 - * - * @param array $tabs The tabs shown on the Install Themes screen. Defaults are - * 'dashboard', 'search', 'upload', 'featured', 'new', and 'updated'. - */ + /** This filter is documented in wp-admin/theme-install.php */ $tabs = apply_filters( 'install_themes_tabs', $tabs ); /** diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php index bcd841b88b..19b9828abe 100644 --- a/src/wp-admin/theme-install.php +++ b/src/wp-admin/theme-install.php @@ -27,6 +27,11 @@ if ( ! is_network_admin() ) { $submenu_file = 'themes.php'; } +$tabs = array( + 'upload' => __( 'Upload Theme' ), + 'browse-themes' => _x( 'Browse', 'themes' ), +); + $sections = array( 'featured' => __( 'Featured Themes' ), 'popular' => __( 'Popular Themes' ), @@ -110,8 +115,19 @@ include(ABSPATH . 'wp-admin/admin-header.php');

- - + $tab_name ) { + echo '' . $tab_name . ''; + } + ?>