[wp-trac] [WordPress Trac] #45423: Use custom capabilities for the block editor's reusable blocks.

WordPress Trac noreply at wordpress.org
Mon Nov 26 22:30:32 UTC 2018


#45423: Use custom capabilities for the block editor's reusable blocks.
-----------------------------+-----------------------------
 Reporter:  peterwilsoncc    |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Role/Capability  |    Version:  5.0
 Severity:  normal           |   Keywords:  has-patch
  Focuses:                   |
-----------------------------+-----------------------------
 The new `wp_block` post type for reusable blocks is currently mapped to
 the `post` post types capabilities, including some work-arounds in
 `map_meta_cap()` for the purpose.

 To allow for custom roles limiting users to editing/reading certain post
 types (for example a "Page Editor" or "Photo manager") these ought to have
 their own capabilities, consistent with other built in post types.

 This will also allow web site owners to customize existing roles; for
 example to allow authors to edit another user's reusable blocks or for
 contributors to create them.

 Follow up from #45098.

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


More information about the wp-trac mailing list