Commit c5624a6d authored by Eric Windham's avatar Eric Windham

Merge branch '2567-is_search-called-incorrectly' into 'develop'

Fix calling is_search before $wp_query is set.

Closes #2567

See merge request ninja-forms/ninja-forms!3719
parents 86deeecb d5d53865
Pipeline #747 passed with stage
in 46 seconds
......@@ -281,7 +281,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