WordPress/wp-includes/rest-api/endpoints
Sergey Biryukov f04d84149f REST API: Include viewable attribute on Post Type resource for edit context.
For the block editor to be able to expose the Preview button correctly, it needs to know the `is_post_type_viewable()` setting, this change adds it to the Post Type response.

Props danielbachhuber.
Merges [43007] to the 4.9 branch.
Fixes #43739.
Built from https://develop.svn.wordpress.org/branches/4.9@43038


git-svn-id: http://core.svn.wordpress.org/branches/4.9@42867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 04:31:25 +00:00
..
class-wp-rest-attachments-controller.php Media: Bring consistency to getimagesize() error suppression. 2018-01-15 20:02:39 +00:00
class-wp-rest-comments-controller.php
class-wp-rest-controller.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:05:49 +00:00
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php REST API: Include viewable attribute on Post Type resource for edit context. 2018-04-30 04:31:25 +00:00
class-wp-rest-posts-controller.php
class-wp-rest-revisions-controller.php
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
class-wp-rest-terms-controller.php REST API: Add existing term_id to the error data object when attempting to create a duplicate term. 2018-01-23 20:22:39 +00:00
class-wp-rest-users-controller.php