[wp-trac] [WordPress Trac] #60745: WP_Query::parse_query() does not handle invalid query arg values
WordPress Trac
noreply at wordpress.org
Fri Apr 5 21:41:57 UTC 2024
#60745: WP_Query::parse_query() does not handle invalid query arg values
--------------------------------------------+------------------------------
Reporter: xknown | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests php80 | Focuses:
--------------------------------------------+------------------------------
Comment (by jrf):
@xknown PHP errors like these exist for a reason: to warn developers and
allow them to fix their code.
Hiding these errors as per your proposal (and as previously clearly
applied in part as well), is often the cause of insidious bugs and makes
debugging faulty queries much harder as some "mystery default" gets used
instead of the query throwing an error which the developer can fix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60745#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list