WordPress/wp-includes/rest-api
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
..
endpoints REST API: Include viewable attribute on Post Type resource for edit context 2018-04-27 03:06:21 +00:00
fields Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-request.php Docs: Remove @static notations from method DocBlocks in wp-includes/* classes. 2018-02-25 20:22:30 +00:00
class-wp-rest-response.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-rest-server.php REST API: Remove permalink_structure from the index. 2018-04-23 04:12:20 +00:00