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

WordPress Trac noreply at wordpress.org
Mon Dec 23 18:08:02 UTC 2019


#45423: Use custom capabilities for the block editor's reusable blocks.
------------------------------------------------+-----------------------
 Reporter:  peterwilsoncc                       |       Owner:  (none)
     Type:  defect (bug)                        |      Status:  assigned
 Priority:  normal                              |   Milestone:  5.4
Component:  Role/Capability                     |     Version:  5.0
 Severity:  normal                              |  Resolution:
 Keywords:  needs-patch needs-unit-tests early  |     Focuses:
------------------------------------------------+-----------------------

Comment (by skorasaurus):

 I'm running into this right now as we have users who we wish to access
 reusable blocks on custom post types (we want to simply the editing
 experience for them by only showing them the content that they work on and
 not all posts which is the current behavior as mentioned in this ticket)

 While I was developing, I had mistakenly assumed that the read_blocks
 permission would give them permission to access the blocks (both core and
 reusable)
 (and this wasn't documented anywhere, to my knowledge, until I delved into
 the code and then found this ticket).

 As a result, I am guessing as a work-around users/agencies creating their
 own plugins with their own blocks instead of using reusable blocks and I
 may end up taking the same approach.

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


More information about the wp-trac mailing list