wordpress-develop/src/wp-includes/rest-api
K. Adam White d65b89c5e4 REST API: Always return post types list in taxonomies endpoint response as an array.
Prevents a non-sequential post type array such as [ 0 => 'post', 2 => 'page' ] from being improperly converted to an object in the taxonomy endpoint's response JSON.

Props TimothyBlynJacobs, birgire, spectacula.
Fixes #42209.


git-svn-id: https://develop.svn.wordpress.org/trunk@45813 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-15 22:11:07 +00:00
..
endpoints REST API: Always return post types list in taxonomies endpoint response as an array. 2019-08-15 22:11:07 +00:00
fields REST API: Support 'object' and 'array' types in register_meta() schemas. 2019-08-15 17:16:21 +00:00
search Docs: Add missing @see tag to WP_REST_Post_Search_Handler DocBlock. 2019-05-14 14:58:09 +00:00
class-wp-rest-request.php Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays. 2019-07-15 06:24:08 +00:00
class-wp-rest-response.php Docs: Correct and improve various inline documentation. 2018-08-27 14:27:22 +00:00
class-wp-rest-server.php REST API: Do not send response body if status is 204 or body is null. 2019-08-15 19:55:13 +00:00