[wp-trac] [WordPress Trac] #42209: register_taxonomy with a non-sequential array index of post_types causes /wp-json/wp/v2/taxonomies to return an object not an array
WordPress Trac
noreply at wordpress.org
Tue Aug 13 18:20:29 UTC 2019
#42209: register_taxonomy with a non-sequential array index of post_types causes
/wp-json/wp/v2/taxonomies to return an object not an array
--------------------------------------+-----------------------------
Reporter: spectacula | Owner: timothybjacobs
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: REST API | Version: 4.8.2
Severity: normal | Resolution:
Keywords: has-unit-tests has-patch | Focuses:
--------------------------------------+-----------------------------
Changes (by kadamwhite):
* owner: (none) => timothybjacobs
* status: new => assigned
* milestone: Awaiting Review => 5.3
Comment:
Assigning to @timothybjacobs after scrub in REST API slack channel. He's
noted that an `array_values` call within the REST API controller may be
safer.
Provisionally accepting for 5.3.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42209#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list