[wp-trac] [WordPress Trac] #60745: WP_Query::parse_query() does not handle invalid query arg values
WordPress Trac
noreply at wordpress.org
Thu Sep 19 00:59:31 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: 6.7
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests php80 | Focuses:
--------------------------------------------+---------------------
Comment (by peterwilsoncc):
I've come around to putting this in `WP_Query` in some form.
With the introduction of the query block, it's possible for user input to
be passed to `WP_Query` in an unexpected form that will also result in a
fatal error due through no fault of the developers. From memory, the block
query builder protects against it but doing validation at a lower level
can't hurt.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60745#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list