Add a new 'Beta Testing' tab on the plugin installer, for features as plugins such as Press This.
fixes #28513. Built from https://develop.svn.wordpress.org/trunk@28749 git-svn-id: http://core.svn.wordpress.org/trunk@28563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f88149c370
commit
aeac3e1654
|
@ -34,6 +34,9 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
|||
$tabs['popular'] = _x( 'Popular', 'Plugin Installer' );
|
||||
$tabs['new'] = _x( 'Newest', 'Plugin Installer' );
|
||||
$tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
|
||||
if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
|
||||
$tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
|
||||
}
|
||||
|
||||
$nonmenu_tabs = array( 'plugin-information' ); //Valid actions to perform which do not have a Menu item.
|
||||
|
||||
|
@ -85,6 +88,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
|||
case 'featured':
|
||||
case 'popular':
|
||||
case 'new':
|
||||
case 'beta':
|
||||
$args['browse'] = $tab;
|
||||
break;
|
||||
|
||||
|
|
|
@ -236,6 +236,7 @@ add_action( 'install_plugins_search', 'display_plugins_table' );
|
|||
add_action( 'install_plugins_featured', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_popular', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_new', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_beta', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_favorites', 'display_plugins_table' );
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue