WordPress.org

Make WordPress Core

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

File 19619.search-needs-type.diff, 722 bytes (added by georgestephanis, 2 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>