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/class-wp-plugin-install-list-table.php

    r20592 r20639  
    4848        switch ( $tab ) {
    4949            case 'search':
    50                 $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : '';
     50                $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term';
    5151                $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
    5252
Note: See TracChangeset for help on using the changeset viewer.