WordPress.org

Make WordPress Core

Ticket #32235: 32235.diff

File 32235.diff, 737 bytes (added by pareshradadiya, 7 years ago)

set $status to search

  • src/wp-admin/includes/class-wp-plugins-list-table.php

     
    3131                if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search' ) ) )
    3232                        $status = $_REQUEST['plugin_status'];
    3333
    34                 if ( isset($_REQUEST['s']) )
     34                if ( isset($_REQUEST['s']) ) {
    3535                        $_SERVER['REQUEST_URI'] = add_query_arg('s', wp_unslash($_REQUEST['s']) );
     36                        $status = 'search';
     37                }
    3638
    3739                $page = $this->get_pagenum();
    3840        }