WordPress.org

Make WordPress Core

Changeset 30782


Ignore:
Timestamp:
12/07/14 23:39:54 (3 years ago)
Author:
azaozz
Message:

Plugins: move the recommender results to a separate tab. Any outstanding quality issues will be fixed on the API side without needing core changes. Props tellyworth, fixes #30337.

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

    r30679 r30782  
    6565        $tabs['featured']  = _x( 'Featured', 'Plugin Installer' ); 
    6666        $tabs['popular']   = _x( 'Popular', 'Plugin Installer' ); 
     67        $tabs['recommended']   = _x( 'Recommended', 'Plugin Installer' ); 
    6768        $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); 
    6869        if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) { 
     
    135136            case 'new': 
    136137            case 'beta': 
     138            case 'recommended': 
    137139                $args['browse'] = $tab; 
    138140                break; 
  • trunk/src/wp-admin/includes/plugin-install.php

    r30680 r30782  
    246246    <?php 
    247247} 
    248 add_action( 'install_plugins_search',    'display_plugins_table' ); 
    249 add_action( 'install_plugins_popular',   'display_plugins_table' ); 
    250 add_action( 'install_plugins_new',       'display_plugins_table' ); 
    251 add_action( 'install_plugins_beta',      'display_plugins_table' ); 
    252 add_action( 'install_plugins_favorites', 'display_plugins_table' ); 
     248add_action( 'install_plugins_search',      'display_plugins_table' ); 
     249add_action( 'install_plugins_popular',     'display_plugins_table' ); 
     250add_action( 'install_plugins_recommended', 'display_plugins_table' ); 
     251add_action( 'install_plugins_new',         'display_plugins_table' ); 
     252add_action( 'install_plugins_beta',        'display_plugins_table' ); 
     253add_action( 'install_plugins_favorites',   'display_plugins_table' ); 
    253254 
    254255/** 
Note: See TracChangeset for help on using the changeset viewer.