WordPress/wp-includes/rest-api/endpoints
Sergey Biryukov ff3ea55f76 REST API: Include fields with null schema in get_fields_for_response().
In [43736], we prevented rendering fields when not present in `?_fields=`. However, because `get_fields_for_response()` is dependent on `get_item_schema()`, any custom fields registered with a null schema would be incorrectly excluded from the response. Because the REST API permits a null schema for `register_rest_field()`, those fields should be included in the available fields for a response.

Props danielbachhuber.
Merges [43908] to trunk.
Fixes #45220.
Built from https://develop.svn.wordpress.org/trunk@44254


git-svn-id: http://core.svn.wordpress.org/trunk@44084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 03:29:47 +00:00
..
class-wp-rest-attachments-controller.php REST API: Prevent duplicate firing of rest(_after)?_insert_attachment actions. 2018-12-17 03:05:20 +00:00
class-wp-rest-autosaves-controller.php REST API: Avoid using 'parent' as path argument name for autosaves. 2018-12-17 03:26:22 +00:00
class-wp-rest-block-renderer-controller.php REST API: Add endpoints for blocks. 2018-12-14 02:35:38 +00:00
class-wp-rest-blocks-controller.php REST API: Add endpoints for blocks. 2018-12-14 02:35:38 +00:00
class-wp-rest-comments-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00
class-wp-rest-controller.php REST API: Include fields with null schema in get_fields_for_response(). 2018-12-17 03:29:47 +00:00
class-wp-rest-post-statuses-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-post-types-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-posts-controller.php REST API: Prevent duplicate firing of rest(_after)?_insert_attachment actions. 2018-12-17 03:05:20 +00:00
class-wp-rest-revisions-controller.php REST API: Support pagination, order, search and other common query parameters for revisions. 2018-08-28 12:23:26 +00:00
class-wp-rest-search-controller.php REST API: Introduce controller for searching across post types. 2018-12-13 09:38:25 +00:00
class-wp-rest-settings-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-taxonomies-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-terms-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00
class-wp-rest-themes-controller.php Themes: Introduce responsive embeds support. 2018-12-14 01:50:37 +00:00
class-wp-rest-users-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00