Make WordPress Core


Ignore:
Timestamp:
04/25/2012 07:37:19 PM (13 years ago)
Author:
nacin
Message:

Reduce clutter and repetive functionality from the initial landing page for installing plugins and themes by removing the tag/author/term dropdown.

The tag cloud (plugins) and feature filter (themes) is sufficient for tag functionality. All three "search by" fields are already weighted for a standard keyword search through the WP.org API.

fixes #19619 for 3.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r20490 r20592  
    8585
    8686    <h4><?php _e('Search') ?></h4>
    87     <p class="install-help"><?php _e('Search for plugins by keyword, author, or tag.') ?></p>
    88     <?php install_search_form(); ?>
     87    <?php install_search_form( false ); ?>
    8988
    9089    <h4><?php _e('Popular tags') ?></h4>
     
    117116 * @since 2.7.0
    118117 */
    119 function install_search_form(){
     118function install_search_form( $type_selector = true ) {
    120119    $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
    121120    $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
     
    123122    ?><form id="search-plugins" method="get" action="">
    124123        <input type="hidden" name="tab" value="search" />
     124        <?php if ( $type_selector ) : ?>
    125125        <select name="type" id="typeselector">
    126126            <option value="term"<?php selected('term', $type) ?>><?php _e('Keyword'); ?></option>
     
    128128            <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option>
    129129        </select>
     130        <?php endif; ?>
    130131        <input type="search" name="s" value="<?php echo esc_attr($term) ?>" />
    131132        <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
Note: See TracChangeset for help on using the changeset viewer.