WordPress/wp-includes/rest-api
Gary Pendergast 2f792d442b REST API: Filter responses based on the `_fields` parameter, before data is processed.
Historically, the REST API would generate the entire response object, including running expensive filters, then it would apply the `_fields` parameter, discarding the fields that weren't specificed.

This change causes `_fields` to be applied earlier, so that only requested fields are processed.

Props danielbachhuber.
See #43874.


Built from https://develop.svn.wordpress.org/trunk@43087


git-svn-id: http://core.svn.wordpress.org/trunk@42916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:25:21 +00:00
..
endpoints REST API: Filter responses based on the `_fields` parameter, before data is processed. 2018-05-02 01:25:21 +00:00
fields Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-request.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:22:30 +00:00
class-wp-rest-response.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-server.php REST API: Remove `permalink_structure` from the index. 2018-04-23 04:12:20 +00:00