Make WordPress Core


Ignore:
Timestamp:
08/25/2014 04:02:43 PM (12 years ago)
Author:
helen
Message:

Only show one search form for the plugin installer.

The field dropdown now appears in the filter bar only when doing a search.

see #28785.

File:
1 edited

Legend:

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

    r29574 r29597  
    165165        $term = isset($_REQUEST['s']) ? wp_unslash( $_REQUEST['s'] ) : '';
    166166        $input_attrs = '';
    167         $button_type = 'button';
     167        $button_type = 'button screen-reader-text';
    168168
    169169        // assume no $type_selector means it's a simplified search form
    170170        if ( ! $type_selector ) {
    171171                $input_attrs = 'class="wp-filter-search" placeholder="' . esc_attr__( 'Search Plugins' ) . '" ';
    172                 $button_type .= ' screen-reader-text';
    173         }
    174 
    175         ?><form class="search-plugins" method="get" action="">
     172        }
     173
     174        ?><form class="search-form search-plugins" method="get" action="">
    176175                <input type="hidden" name="tab" value="search" />
    177176                <?php if ( $type_selector ) : ?>
Note: See TracChangeset for help on using the changeset viewer.