From c8e8281a05ef963273cc3a393326c077bc2282a9 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 7 Dec 2014 23:39:54 +0000 Subject: [PATCH] Plugins: move the recommender results to a separate tab. Any outstanding quality issues will be fixed on the API side without needing core changes. Props tellyworth, fixes #30337. git-svn-id: https://develop.svn.wordpress.org/trunk@30782 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-plugin-install-list-table.php | 2 ++ src/wp-admin/includes/plugin-install.php | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-wp-plugin-install-list-table.php b/src/wp-admin/includes/class-wp-plugin-install-list-table.php index bbdb745d90..07bfa0c723 100644 --- a/src/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/src/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -64,6 +64,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $tabs['search'] = __( 'Search Results' ); $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); $tabs['popular'] = _x( 'Popular', 'Plugin Installer' ); + $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' ); $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) { $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); @@ -134,6 +135,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { case 'popular': case 'new': case 'beta': + case 'recommended': $args['browse'] = $tab; break; diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index 055ff1f0e1..6acc298f34 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -245,11 +245,12 @@ function display_plugins_table() {