Make WordPress Core

Ticket #29631: 29631.diff

File 29631.diff, 1.1 KB (added by nacin, 11 years ago)
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

     
    6060                // These are the tabs which are shown on the page
    6161                $tabs = array();
    6262
    63                 if ( 'search' == $tab )
     63                if ( 'search' == $tab ) {
    6464                        $tabs['search'] = __( 'Search Results' );
     65                }
     66                if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
     67                        $tabs['beta']      = _x( 'Beta Testing', 'Plugin Installer' );
     68                }
    6569                $tabs['featured']  = _x( 'Featured', 'Plugin Installer' );
    6670                $tabs['popular']   = _x( 'Popular', 'Plugin Installer' );
    6771                $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
    68                 if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
    69                         $tabs['beta']      = _x( 'Beta Testing', 'Plugin Installer' );
    70                 }
    7172                if ( current_user_can( 'upload_plugins' ) ) {
    7273                        // No longer a real tab. Here for filter compatibility.
    7374                        // Gets skipped in get_views().