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/plugin-install.php

    r20592 r20639  
    117117 */
    118118function install_search_form( $type_selector = true ) {
    119     $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
     119    $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : 'term';
    120120    $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
    121121
Note: See TracChangeset for help on using the changeset viewer.