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

WordPress Trac noreply at wordpress.org
Mon Apr 30 04:30:24 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
  fixed-major                                    |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

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

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


More information about the wp-trac mailing list