wordpress-develop/tests
Sergey Biryukov d79ec242e4 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@44254 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-17 01:14:17 +00:00
..
phpunit REST API: Include fields with null schema in get_fields_for_response(). 2018-12-17 01:14:17 +00:00
qunit REST API: Avoid using 'parent' as path argument name for autosaves. 2018-12-17 00:23:55 +00:00