Make WordPress Core

Changeset 28749


Ignore:
Timestamp:
06/12/2014 06:08:56 PM (10 years ago)
Author:
nacin
Message:

Add a new 'Beta Testing' tab on the plugin installer, for features as plugins such as Press This.

fixes #28513.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r28493 r28749  
    3535        $tabs['new']       = _x( 'Newest', 'Plugin Installer' );
    3636        $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
     37        if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
     38            $tabs['beta']      = _x( 'Beta Testing', 'Plugin Installer' );
     39        }
    3740
    3841        $nonmenu_tabs = array( 'plugin-information' ); //Valid actions to perform which do not have a Menu item.
     
    8689            case 'popular':
    8790            case 'new':
     91            case 'beta':
    8892                $args['browse'] = $tab;
    8993                break;
  • trunk/src/wp-admin/includes/plugin-install.php

    r28301 r28749  
    237237add_action( 'install_plugins_popular',   'display_plugins_table' );
    238238add_action( 'install_plugins_new',       'display_plugins_table' );
     239add_action( 'install_plugins_beta',      'display_plugins_table' );
    239240add_action( 'install_plugins_favorites', 'display_plugins_table' );
    240241
Note: See TracChangeset for help on using the changeset viewer.