mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Daniel Bachhuber
9ea3656e1e
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. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43908 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.4%
CSS
8.9%
JavaScript
8.2%
SCSS
0.8%
HTML
0.7%