wordpress-develop/src/wp-includes/rest-api
K. Adam White 7aae0cfe56 REST API: Generate sample permalink only when a dependent field is requested.
The sample permalink will now only be generated if the derivative `permalink_template` or `generated_slug` fields are to be included in the response, preventing an unnecessary database request for each post (via `wp_unique_post_slug()`) when those fields are not requested.

Props dlh.
See #45605.


git-svn-id: https://develop.svn.wordpress.org/trunk@45705 602fd350-edb4-49c9-b593-d223f7449a82
2019-07-31 19:59:30 +00:00
..
endpoints REST API: Generate sample permalink only when a dependent field is requested. 2019-07-31 19:59:30 +00:00
fields REST API: Make "Could not update meta value in database" error messages more helpful. 2019-07-26 13:19:44 +00:00
search Docs: Add missing @see tag to WP_REST_Post_Search_Handler DocBlock. 2019-05-14 14:58:09 +00:00
class-wp-rest-request.php Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays. 2019-07-15 06:24:08 +00:00
class-wp-rest-response.php Docs: Correct and improve various inline documentation. 2018-08-27 14:27:22 +00:00
class-wp-rest-server.php REST API: Pass current request object to rest_authentication_errors filter in WP_REST_Server::check_authentication(). 2019-07-27 13:43:41 +00:00