[wp-trac] [WordPress Trac] #46723: Feature Image disappears only in Gutenberg with CPT.

WordPress Trac noreply at wordpress.org
Sat Feb 22 16:29:20 UTC 2020


#46723: Feature Image disappears only in Gutenberg with CPT.
---------------------------------------------+---------------------
 Reporter:  miyauchi                         |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  5.4
Component:  REST API                         |     Version:  5.1
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+---------------------
Changes (by TimothyBlynJacobs):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests commit


Comment:

 Great, thanks for confirming @miyauchi!

 > However I am worried about that if user has a permission of edit_* for
 one of CPTs, this solution always return true. right?

 Yep, that's intentional. The idea is that if the user can edit any CPT
 that would use the block editor, they'll need to be able to see the
 `/themes` endpoint.

 We'll need to overhaul the permissions model for this resource at some
 point, but given that this data is essentially public ( it lives in
 stylesheets, or is explicitly for front-end rendering ), I'm comfortable
 with the current permission checks.

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


More information about the wp-trac mailing list