WPIntell

Source evidence

php notice: Notice: Function is_search was called incorrectly.

Simple Custom Post Order · support · 2025-08-08T18:02:00+00:00

complaintsentiment
mediumseverity
0.81relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 12 rows with source links

16.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

10 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
jnz31 unresolved
php 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/

Comments

1 shown
adjc98 2025-08-12T17:36:00+00:00

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/