WordPress/wp-includes/rest-api
spacedmonkey 33499dc6d8 REST API: Make the templates controller follow core REST patterns.
The templates controller now respects the `_fields` parameter and filters the response accordingly. The schema has been updated to include all the fields returned. The `content.block_version` field has been added. The controller now returns WP_Error objects for improved error handling.

Add new unit tests.

Props TimothyBlynJacobs, hellofromtonya, zieladam.
Fixes #54422.

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


git-svn-id: http://core.svn.wordpress.org/trunk@51778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-16 18:06:00 +00:00
..
endpoints REST API: Make the templates controller follow core REST patterns. 2021-11-16 18:06:00 +00:00
fields REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
search REST API: Corrections and improvements to docblocks for REST API filters. 2021-01-10 22:23:09 +00:00
class-wp-rest-request.php Code Modernization: Silence the deprecation warnings for missing return type in WP_REST_Request. 2021-08-03 11:08:56 +00:00
class-wp-rest-response.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-server.php REST API: Expose the site icon in the REST API index. 2021-11-09 20:37:59 +00:00