Conversation
supportphp notice as shown above with a fix for the issue: in file simple-custom-post-order.php on line 602: if ( is_search() ) { replace with if ( $wp_query->is_search() ) { and while you at it, line 606: if ( is_admin() && ! wp_doing_ajax() ) { replace with: if ( $wp_query->is_admin() && ! wp_doing_ajax() ) { short explainer: you run is_search before the query has been run (inside pre_get_posts …) but since you submit the query into the action anyhow, you simply need to check it on itself. This topic was modified 9 months, 3 weeks ago by jnz31 .
I second this. This is the same issue I submitted a few days ago. https://wordpress.org/support/topic/new-is_search-on-line-602-causing-warnings/
I second this. This is the same issue I submitted a few days ago. https://wordpress.org/support/topic/new-is_search-on-line-602-causing-warnings/