WordPress/wp-includes/rest-api/endpoints
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
..
class-wp-rest-attachments-controller.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-rest-autosaves-controller.php 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
class-wp-rest-block-renderer-controller.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-rest-blocks-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-comments-controller.php 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
class-wp-rest-controller.php REST API: Support dot.nested hierarchical properties in _fields query parameter. 2019-09-19 14:05:55 +00:00
class-wp-rest-post-statuses-controller.php REST API: Introduce date_floating property on status endpoint response objects. 2019-09-23 17:40:58 +00:00
class-wp-rest-post-types-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-posts-controller.php 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
class-wp-rest-revisions-controller.php 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
class-wp-rest-search-controller.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-rest-settings-controller.php Docs: Remove extra spaces in various REST API DocBlocks. 2019-09-05 23:05:55 +00:00
class-wp-rest-taxonomies-controller.php Docs: Remove extra spaces in various REST API DocBlocks. 2019-09-05 23:05:55 +00:00
class-wp-rest-terms-controller.php REST API: Return term resources in "edit" context after PUT or POST request. 2019-09-12 21:29:57 +00:00
class-wp-rest-themes-controller.php Docs: Remove extra spaces in various REST API DocBlocks. 2019-09-05 23:05:55 +00:00
class-wp-rest-users-controller.php REST API: Mark `WP_REST_Users_Controller::update_current_item()` and `::delete_current_item()` as public. 2019-09-05 23:18:55 +00:00