WordPress/wp-includes/rest-api/endpoints
Gary Pendergast 52d0b2f982 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.
Fixes #43739.


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


git-svn-id: http://core.svn.wordpress.org/trunk@42836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 03:06:21 +00:00
..
class-wp-rest-attachments-controller.php Media: Bring consistency to `getimagesize()` error suppression. 2018-01-15 19:44:47 +00:00
class-wp-rest-comments-controller.php Docs: Add missing code formatting to various `@since` entries. 2018-02-09 16:55:31 +00:00
class-wp-rest-controller.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-post-statuses-controller.php REST API: Fix permissions error message in post statuses controller. 2017-12-03 20:49:47 +00:00
class-wp-rest-post-types-controller.php REST API: Include `viewable` attribute on Post Type resource for `edit` context 2018-04-27 03:06:21 +00:00
class-wp-rest-posts-controller.php Docs: Add missing code formatting to various `@since` entries. 2018-02-09 16:55:31 +00:00
class-wp-rest-revisions-controller.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-settings-controller.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-taxonomies-controller.php REST API: Fix a typo introduced in [42729]. 2018-04-13 00:56:21 +00:00
class-wp-rest-terms-controller.php REST API: Correct HTTP status code in error for requests to create a duplicate term. 2017-12-03 19:09:49 +00:00
class-wp-rest-users-controller.php REST API: Add `who=authors` as a query parameter for `GET wp/v2/users`. 2018-04-25 13:06:21 +00:00