WordPress/wp-includes/rest-api
K. Adam White 10772e8499 REST API: Introduce WP_Post_Type::get_rest_controller() caching method to prevent unnecessary REST controller construction.
Cache REST controller references on their associated post type object to prevent unnecessary controller re-instantiation, which previously caused "rest_prepare_{$post_type}" and "rest_{$post_type}_query" to run twice per request.

Props TimothyBlynJacobs, patrelentlesstechnologycom.
Fixes #45677.

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


git-svn-id: http://core.svn.wordpress.org/trunk@46084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-23 20:25:57 +00:00
..
endpoints REST API: Introduce WP_Post_Type::get_rest_controller() caching method to prevent unnecessary REST controller construction. 2019-09-23 20:25:57 +00:00
fields Docs: Remove extra spaces in various REST API DocBlocks. 2019-09-05 23:05:55 +00:00
search Docs: Add missing `@see` tag to `WP_REST_Post_Search_Handler` DocBlock. 2019-05-14 15:00:07 +00:00
class-wp-rest-request.php REST API: Pass "null" as the post date property to reset post to initial "floating" date value. 2019-09-23 17:25:57 +00:00
class-wp-rest-response.php Docs: Remove extra spaces in various REST API DocBlocks. 2019-09-05 23:05:55 +00:00
class-wp-rest-server.php Code Modernization: Remove JSON extension workarounds for PHP < 5.6. 2019-09-20 20:08:57 +00:00