Make WordPress Core

Changeset 29636


Ignore:
Timestamp:
08/27/2014 02:52:29 AM (11 years ago)
Author:
nacin
Message:

Plugin installer: Minor adjustments to aid with discovery.

fixes #29387.

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r29618 r29636  
    10921092    border: none;
    10931093    line-height: 2em;
    1094     max-width: 1000px;
    10951094    padding: 8px 12px 12px;
    10961095    text-align: justify;
  • trunk/src/wp-admin/css/list-tables.css

    r29627 r29636  
    12421242}
    12431243
    1244 .plugin-group:first-of-type,
    12451244.plugin-group h3 {
    12461245    margin-top: 0;
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r29634 r29636  
    6565        $tabs['featured']  = _x( 'Featured', 'Plugin Installer' );
    6666        $tabs['popular']   = _x( 'Popular', 'Plugin Installer' );
    67         $tabs['new']       = _x( 'Newest', 'Plugin Installer' );
    6867        $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
    6968        if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
     
    274273
    275274    protected function display_tablenav( $which ) {
     275        if ( $GLOBALS['tab'] === 'featured' ) {
     276            return;
     277        }
     278
    276279        if ( 'top' ==  $which ) { ?>
    277280            <div class="tablenav top">
  • trunk/src/wp-admin/includes/plugin-install.php

    r29634 r29636  
    129129    <p><?php printf( __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%1$s">WordPress Plugin Directory</a> or upload a plugin in .zip format via <a href="%2$s">this page</a>.' ), 'https://wordpress.org/plugins/', self_admin_url( 'plugin-install.php?tab=upload' ) ); ?></p>
    130130
    131     <h4><?php _e('Search') ?></h4>
    132     <?php install_search_form( false ); ?>
    133 
    134     <h4><?php _e('Popular tags') ?></h4>
    135     <p class="install-help"><?php _e('You may also browse based on the most popular tags in the Plugin Directory:') ?></p>
     131    <?php display_plugins_table(); ?>
     132
     133    <h3><?php _e( 'Popular tags' ) ?></h3>
     134    <p><?php _e( 'You may also browse based on the most popular tags in the Plugin Directory:' ) ?></p>
    136135    <?php
    137136
     
    154153    echo '</p><br class="clear" />';
    155154}
    156 add_action('install_plugins_dashboard', 'install_dashboard');
     155add_action( 'install_plugins_featured', 'install_dashboard' );
    157156
    158157/**
     
    243242}
    244243add_action( 'install_plugins_search',    'display_plugins_table' );
    245 add_action( 'install_plugins_featured',  'display_plugins_table' );
    246244add_action( 'install_plugins_popular',   'display_plugins_table' );
    247245add_action( 'install_plugins_new',       'display_plugins_table' );
Note: See TracChangeset for help on using the changeset viewer.