[wp-trac] [WordPress Trac] #45423: Use custom capabilities for the block editor's reusable blocks.
WordPress Trac
noreply at wordpress.org
Mon Jan 21 05:56:58 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.1
Component: Role/Capability | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by peterwilsoncc):
* keywords: has-patch => has-patch has-unit-tests
* owner: (none) => pento
* status: new => assigned
* milestone: Future Release => 5.1
Comment:
In [attachment:"45423.2.diff"]
* replaces the primitive caps used by blocks with `*_blocks`
* The `read` and `create_posts` post type caps use an atypical mapping,
the caps are not needed for the roles
* updates the block permissions tests to use `edit_post`, `create_post`
and `delete_post` meta caps
* adds the new caps to roles in an update routine
* adds the new caps to the existing unit tests
* the UI for authors and contributors remains visible on the add page/post
screens, however this isn't a regression.
This fixes the white screen issues identified in #45373.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45423#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list