WordPress/wp-includes/rest-api/endpoints
danielbachhuber bab0d57578 REST API: Include permalink_template/generated_slug for Posts
In order for clients to present permalink previews, the REST API must share the computed results of `get_sample_permalink()`. These two values are now exposed as `permalink_template` and `generated_slug` for public, viewable post types, but only for `context=edit`.

Props danielbachhuber, rahulsprajapati.
Fixes #45017.

Built from https://develop.svn.wordpress.org/branches/5.0@43720


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-13 03:49:57 +00:00
..
class-wp-rest-attachments-controller.php REST API: Load missing required file for multisite users 2018-10-10 12:37:24 +00:00
class-wp-rest-comments-controller.php REST API: Filter responses based on the _fields parameter, before data is processed. 2018-07-13 06:51:27 +00:00
class-wp-rest-controller.php REST API: Filter responses based on the _fields parameter, before data is processed. 2018-07-13 06:51:27 +00:00
class-wp-rest-post-statuses-controller.php REST API: Filter responses based on the _fields parameter, before data is processed. 2018-07-13 06:51:27 +00:00
class-wp-rest-post-types-controller.php REST API: Filter responses based on the _fields parameter, before data is processed. 2018-07-13 06:51:27 +00:00
class-wp-rest-posts-controller.php REST API: Include permalink_template/generated_slug for Posts 2018-10-13 03:49:57 +00:00
class-wp-rest-revisions-controller.php REST API: Support pagination, order, search and other common query parameters for revisions. 2018-10-11 07:16:46 +00:00
class-wp-rest-settings-controller.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:05:49 +00:00
class-wp-rest-taxonomies-controller.php REST API: Define taxonomy visibility settings in schema 2018-10-08 13:50:27 +00:00
class-wp-rest-terms-controller.php REST API: Pass correct ID to meta->update_value to permit setting term meta during term creation. 2018-10-11 06:35:23 +00:00
class-wp-rest-users-controller.php REST API: Filter responses based on the _fields parameter, before data is processed. 2018-07-13 06:51:27 +00:00