WordPress/wp-includes/rest-api/endpoints
K. Adam White d296736b75 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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@45516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-07-31 20:00:57 +00:00
..
class-wp-rest-attachments-controller.php REST API: Remove unused attachments controller method. 2019-03-19 03:28:51 +00:00
class-wp-rest-autosaves-controller.php I18N: Merge duplicate "Invalid post parent ID" strings. 2019-05-26 19:05:53 +00:00
class-wp-rest-block-renderer-controller.php REST API: Preserve unknown, respect null in server-side block rendering. 2018-12-17 18:00:52 +00:00
class-wp-rest-blocks-controller.php REST API: Always include title.raw/content.raw for Blocks in context=view. 2018-12-17 17:22:52 +00:00
class-wp-rest-comments-controller.php REST API: Allow rest_get_avatar_urls() to accept full user, post, or comment objects, rather than just an email address, to provide better flexibility for alternative avatar data. 2019-07-14 14:35:56 +00:00
class-wp-rest-controller.php REST API: Call WP_REST_Server::get_compact_response_links() and ::get_raw_data() static methods the right way. 2019-06-26 18:07:54 +00:00
class-wp-rest-post-statuses-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-post-types-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-posts-controller.php REST API: Generate sample permalink only when a dependent field is requested. 2019-07-31 20:00:57 +00:00
class-wp-rest-revisions-controller.php REST API: Always urlencode_deep() query args in get_items methods. 2019-04-25 00:08:52 +00:00
class-wp-rest-search-controller.php REST API: Always urlencode_deep() query args in get_items methods. 2019-04-25 00:08:52 +00:00
class-wp-rest-settings-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-taxonomies-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-terms-controller.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-rest-themes-controller.php Themes: Introduce responsive embeds support. 2018-12-14 01:50:37 +00:00
class-wp-rest-users-controller.php REST API: Allow rest_get_avatar_urls() to accept full user, post, or comment objects, rather than just an email address, to provide better flexibility for alternative avatar data. 2019-07-14 14:35:56 +00:00