WordPress.org

Make WordPress Core

Ticket #19619: 19619.search-needs-type.2.diff

File 19619.search-needs-type.2.diff, 1.4 KB (added by SergeyBiryukov, 3 years ago)
  • wp-admin/includes/plugin-install.php

     
    127127                        <option value="author"<?php selected('author', $type) ?>><?php _e('Author'); ?></option> 
    128128                        <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option> 
    129129                </select> 
     130                <?php else : ?>  
     131                <input type="hidden" name="type" value="term" /> 
    130132                <?php endif; ?> 
    131133                <input type="search" name="s" value="<?php echo esc_attr($term) ?>" /> 
    132134                <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label> 
  • wp-admin/includes/theme-install.php

     
    6363        <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> 
    6464        <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> 
    6565        </select> 
     66        <?php else : ?> 
     67        <input type="hidden" name="type" value="term" /> 
    6668        <?php endif; ?> 
    6769        <input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" /> 
    6870        <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>