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
search
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
class-wp-rest-server.php REST API: Expose the site icon in the REST API index. 2021-11-09 20:37:59 +00:00