Make WordPress Core


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.

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.