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.
Built from https://develop.svn.wordpress.org/trunk@36297


git-svn-id: http://core.svn.wordpress.org/trunk@36264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2016-01-14 09:07:26 +00:00
parent 08693cd206
commit ded3a1d72f
3 changed files with 13 additions and 7 deletions

View File

@ -86,15 +86,15 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
$tabs = array(); $tabs = array();
if ( 'search' === $tab ) { 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'], '-' ) ) { 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' ) ) { if ( current_user_can( 'upload_plugins' ) ) {
// No longer a real tab. Here for filter compatibility. // No longer a real tab. Here for filter compatibility.
// Gets skipped in get_views(). // Gets skipped in get_views().

View File

@ -333,6 +333,12 @@ function display_plugins_table() {
case 'install_plugins_recommended' : case 'install_plugins_recommended' :
echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>'; echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
break; break;
case 'install_plugins_beta' :
printf(
'<p>' . __( 'You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.' ) . '</p>',
'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
);
break;
} }
?> ?>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36296'; $wp_version = '4.5-alpha-36297';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.