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

WordPress Trac noreply at wordpress.org
Fri Mar 29 20:54:32 UTC 2019


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

Comment (by miyauchi):

 I found similar problem to upload featured image.
 https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
 api/endpoints/class-wp-rest-posts-controller.php#L1384

 User needs capability `edit_post` to attach featured image for the
 Gutenberg.
 But user doesn't have `edit_post` if the custom post type is using custom
 role.

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


More information about the wp-trac mailing list