From d2b96ce6b917d146ce8a23ab96f8194b71701aee Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 14 Jan 2016 09:06:12 +0000 Subject: [PATCH] Plugins: Make sure the 'Beta testing' tab is first in the plugin installer. This makes feature plugins more discoverable for people running development builds. Fixes #29631. git-svn-id: https://develop.svn.wordpress.org/trunk@36297 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-plugin-install-list-table.php | 12 ++++++------ src/wp-admin/includes/plugin-install.php | 6 ++++++ 2 files changed, 12 insertions(+), 6 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 1e985c4689..d3f1b87744 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 @@ -86,15 +86,15 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $tabs = array(); if ( 'search' === $tab ) { - $tabs['search'] = __( 'Search Results' ); + $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' ); + $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); } + $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 ( current_user_can( 'upload_plugins' ) ) { // No longer a real tab. Here for filter compatibility. // Gets skipped in get_views(). diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index aca7d630c7..ba89d5ac24 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -333,6 +333,12 @@ function display_plugins_table() { case 'install_plugins_recommended' : echo '

' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '

'; break; + case 'install_plugins_beta' : + printf( + '

' . __( 'You are using a development version of WordPress. These feature plugins are also under development. Learn more.' ) . '

', + 'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/' + ); + break; } ?>