WordPress/wp-includes/rest-api
danielbachhuber bcfb6d34f2 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.

Fixes #45220.

Built from https://develop.svn.wordpress.org/branches/5.0@43908


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-19 14:10:50 +00:00
..
endpoints REST API: Include fields with null schema in get_fields_for_response(). 2018-11-19 14:10:50 +00:00
fields REST API: Slash existing meta values when comparing with incoming meta upates. 2018-10-17 20:10:25 +00:00
search REST API: Introduce controller for searching across post types. 2018-10-17 17:03:26 +00:00
class-wp-rest-request.php
class-wp-rest-response.php
class-wp-rest-server.php