[wp-trac] [WordPress Trac] #62287: WP_REST_Posts_Controller::prepare_items_query() - Warning $prepared_args can be null
WordPress Trac
noreply at wordpress.org
Sat Feb 28 00:41:46 UTC 2026
#62287: WP_REST_Posts_Controller::prepare_items_query() - Warning $prepared_args
can be null
--------------------------+--------------------------
Reporter: apermo | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by westonruter):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61773" 61773]:
{{{
#!CommitTicketReference repository="" revision="61773"
REST API: Guard against passing `null` as `$prepared_args` to
`WP_REST_Posts_Controller::prepare_items_query()`.
The variable may get set to `null` by a filter or subclass.
Developed in https://github.com/WordPress/wordpress-develop/pull/7625
Follow-up to r38832.
Props apermo, dmsnell, westonruter.
Fixes #62287.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62287#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list