[wp-trac] [WordPress Trac] #64247: REST API: `class_list` sometimes returned as an object
WordPress Trac
noreply at wordpress.org
Wed Nov 19 06:01:38 UTC 2025
#64247: REST API: `class_list` sometimes returned as an object
--------------------------------------+--------------------------
Reporter: dlh | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: REST API | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Changes (by westonruter):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61269" 61269]:
{{{
#!CommitTicketReference repository="" revision="61269"
Posts, Post Types: Ensure `get_post_class()` returns a list.
This avoids the REST API erroneously returning an object in the
`class_list` property returned by
`WP_REST_Posts_Controller::prepare_item_for_response()`.
Developed in https://github.com/WordPress/wordpress-develop/pull/10515
Props dlh, mamaduka, westonruter.
Fixes #64247.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64247#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list