Commit d5d53865 authored by Iain Poulson's avatar Iain Poulson

Change the order of if statement so we don't check is_search first, whe $wp_query might not be set.

parent 08be869f
Pipeline #730 passed with stage
in 47 seconds
......@@ -277,7 +277,7 @@ final class NF_Admin_Menus_Submissions extends NF_Abstracts_Submenu
public function search( $pieces ) {
global $typenow;
// filter to select search query
if ( is_search() && is_admin() && $typenow == 'nf_sub' && isset ( $_GET['s'] ) ) {
if ( isset ( $_GET['s'] ) && $typenow == 'nf_sub' && is_search() && is_admin() ) {
global $wpdb;
$keywords = explode(' ', get_query_var('s'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment