mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-28 16:34:25 +00:00
d79ec242e4c4b54bf307b1c485773e098d0f3fb6
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
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%