wordpress-develop/src/wp-includes/rest-api/endpoints
Timothy Jacobs 8a62f46beb REST API: Don't assume all item schemas have properties.
All schema types, not just objects, are permitted as the base type of a resource. A future patch could add validation support for those types, but this fix only prevents a PHP warning from being issued.

Props dhavalkasvala, johnwatkins0, birgire.
Fixes #48785.


git-svn-id: https://develop.svn.wordpress.org/trunk@47328 602fd350-edb4-49c9-b593-d223f7449a82
2020-02-20 16:56:17 +00:00
..
class-wp-rest-attachments-controller.php Docs: Fix typo in a comment in WP_REST_Attachments_Controller::create_item(). 2020-02-17 03:28:05 +00:00
class-wp-rest-autosaves-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-block-renderer-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-blocks-controller.php Docs: Increase the specificity of various docblock parameter types and return types. 2019-12-06 22:41:26 +00:00
class-wp-rest-comments-controller.php Administration: Capitalize Trash consistently in various messages and comments. 2020-02-10 04:10:09 +00:00
class-wp-rest-controller.php REST API: Don't assume all item schemas have properties. 2020-02-20 16:56:17 +00:00
class-wp-rest-post-statuses-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-post-types-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-posts-controller.php REST API: Introduce rest_{$this->post_type}_item_schema filter to enable manipulation of schema values. 2020-02-11 16:26:56 +00:00
class-wp-rest-revisions-controller.php Administration: Capitalize Trash consistently in various messages and comments. 2020-02-10 04:10:09 +00:00
class-wp-rest-search-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-settings-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-taxonomies-controller.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-terms-controller.php REST API: Merge "not allowed to create new terms" permission error message with an existing string. 2020-02-02 05:39:29 +00:00
class-wp-rest-themes-controller.php REST API: List all core theme feature support details in /themes endpoint response. 2020-02-11 01:58:08 +00:00
class-wp-rest-users-controller.php Users: Limit the scope of admin files required in WP_REST_Users_Controller. 2020-02-17 05:31:18 +00:00