[wp-trac] [WordPress Trac] #45423: Use custom capabilities for the block editor's reusable blocks.
WordPress Trac
noreply at wordpress.org
Mon Jan 21 22:32:59 UTC 2019
#45423: Use custom capabilities for the block editor's reusable blocks.
------------------------------------------+-----------------------
Reporter: peterwilsoncc | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.2
Component: Role/Capability | Version: 5.0
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------
Comment (by johnbillion):
I concur with Felix. Introducing new primitive capabilities is impossible
due to the use of custom roles that also potentially need to receive the
new caps. Beyond the default roles in WordPress, a custom role could be
given the `edit_posts` capability but would never receive the
`edit_blocks` capability with this upgrade routine.
These caps should be granted dynamically via the `map_meta_cap` or
`user_has_cap` filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45423#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list