[wp-trac] [WordPress Trac] #43739: Include 'viewable' attribute on Post Type resource for 'edit' context

WordPress Trac noreply at wordpress.org
Fri Apr 27 03:05:42 UTC 2018


#43739: Include 'viewable' attribute on Post Type resource for 'edit' context
---------------------------------------------+-----------------------
 Reporter:  danielbachhuber                  |       Owner:  pento
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9.6
Component:  Posts, Post Types                |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+-----------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43007" 43007]:
 {{{
 #!CommitTicketReference repository="" revision="43007"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43739#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list