Make WordPress Core

Changeset 36297


Ignore:
Timestamp:
01/14/2016 09:06:12 AM (8 years ago)
Author:
swissspidy
Message:

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.

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

    r36092 r36297  
    8787
    8888        if ( 'search' === $tab ) {
    89             $tabs['search'] = __( 'Search Results' );
    90         }
    91         $tabs['featured']  = _x( 'Featured', 'Plugin Installer' );
    92         $tabs['popular']   = _x( 'Popular', 'Plugin Installer' );
    93         $tabs['recommended']   = _x( 'Recommended', 'Plugin Installer' );
    94         $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
     89            $tabs['search'] = __( 'Search Results' );
     90        }
    9591        if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
    96             $tabs['beta']      = _x( 'Beta Testing', 'Plugin Installer' );
    97         }
     92            $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
     93        }
     94        $tabs['featured']    = _x( 'Featured', 'Plugin Installer' );
     95        $tabs['popular']     = _x( 'Popular', 'Plugin Installer' );
     96        $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' );
     97        $tabs['favorites']   = _x( 'Favorites', 'Plugin Installer' );
    9898        if ( current_user_can( 'upload_plugins' ) ) {
    9999            // No longer a real tab. Here for filter compatibility.
  • trunk/src/wp-admin/includes/plugin-install.php

    r36221 r36297  
    333333        case 'install_plugins_recommended' :
    334334            echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
     335            break;
     336        case 'install_plugins_beta' :
     337            printf(
     338                '<p>' . __( 'You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.' ) . '</p>',
     339                'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
     340            );
    335341            break;
    336342    }
Note: See TracChangeset for help on using the changeset viewer.