Make WordPress Core


Ignore:
Timestamp:
04/30/2012 12:44:47 AM (14 years ago)
Author:
nacin
Message:

Default to keyword searches for the plugin and theme installers in case no search type is posted back. fixes #19619.

props georgestephanis, SergeyBiryukov for initial patches.

File:
1 edited

Legend:

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

    r20592 r20639  
    5151 */
    5252function install_theme_search_form( $type_selector = true ) {
    53     $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : '';
     53    $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term';
    5454    $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
    5555    if ( ! $type_selector )
Note: See TracChangeset for help on using the changeset viewer.