WordPress/wp-includes/rest-api/endpoints
desrosj a5b0312f1e REST API: Don't add fields to object when not included in `?_fields=`.
In [43087], we improved REST API performance by only rendering the fields specified in the request. Similarly, any fields registered with `register_rest_field()` should only be rendered when included in `?_fields=`.

Props dlh, danielbachhuber.

Merges [43736] to trunk.

Fixes #45099.
Built from https://develop.svn.wordpress.org/trunk@43986


git-svn-id: http://core.svn.wordpress.org/trunk@43818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-12 20:51:25 +00:00
..
class-wp-rest-attachments-controller.php REST API: Persist attributes for attachment links 2018-12-11 04:01:26 +00:00
class-wp-rest-comments-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-controller.php REST API: Don't add fields to object when not included in `?_fields=`. 2018-12-12 20:51:25 +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: Include permalink_template/generated_slug for Posts 2018-12-12 02:12:24 +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-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: Pass correct ID to `meta->update_value` to permit setting term meta during term creation. 2018-09-12 23:56:24 +00:00
class-wp-rest-themes-controller.php REST API: Introduce themes endpoint to expose theme-supports values for the active theme. 2018-12-12 03:33:24 +00:00
class-wp-rest-users-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00