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

WordPress Trac noreply at wordpress.org
Fri Mar 29 16:53:04 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Gutenberg is using the following API and it needs `edit_posts` capability
 to access it.
 But if we apply the custom role for the post-type, it will have a
 capability like `edit_events` or so.
 So we can't see feature image metabox for the post type with the
 gutenberg.

 https://github.com/WordPress/WordPress/blob/c41dede996bbb50055f914d9094be59f659a4d14
 /wp-includes/rest-api/endpoints/class-wp-rest-themes-
 controller.php#L60-L66

 There is an example plugin to reproduce the problem.
 https://github.com/miya0001/reproduce-12198

 Related: https://github.com/WordPress/gutenberg/issues/12198

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


More information about the wp-trac mailing list