Make WordPress Core

Ticket #29631: 29631.2.diff

File 29631.2.diff, 2.1 KB (added by swissspidy, 10 years ago)
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

    diff --git src/wp-admin/includes/class-wp-plugin-install-list-table.php src/wp-admin/includes/class-wp-plugin-install-list-table.php
    index ba8445c..7d9d194 100644
    class WP_Plugin_Install_List_Table extends WP_List_Table { 
    8686                $tabs = array();
    8787
    8888                if ( 'search' === $tab ) {
    89                         $tabs['search'] = __( 'Search Results' );
     89                        $tabs['search'] = __( 'Search Results' );
    9090                }
    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' );
    9591                if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
    96                         $tabs['beta']      = _x( 'Beta Testing', 'Plugin Installer' );
     92                        $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
    9793                }
     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.
    100100                        // Gets skipped in get_views().
  • src/wp-admin/includes/plugin-install.php

    diff --git src/wp-admin/includes/plugin-install.php src/wp-admin/includes/plugin-install.php
    index bb450e1..34455e4 100644
    function display_plugins_table() { 
    333333                case 'install_plugins_recommended' :
    334334                        echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
    335335                        break;
     336                case 'install_plugins_beta' :
     337                        printf(
     338                                '<p>' . __( 'You are using a development version of WordPress. Below is a list of feature plugins which 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                        );
     341                        break;
    336342        }
    337343
    338344        ?>