[wp-trac] [WordPress Trac] #45373: New reusable block creation returning blank white screen
WordPress Trac
noreply at wordpress.org
Tue Jan 22 00:04:27 UTC 2019
#45373: New reusable block creation returning blank white screen
------------------------------+-----------------------
Reporter: umakantsharmamwb | Owner: pento
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.1
Component: Editor | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: rest-api
------------------------------+-----------------------
Changes (by pento):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"44687" 44687]:
{{{
#!CommitTicketReference repository="" revision="44687"
Blocks: Define the `edit_posts` capability on the `wp_block` post type.
Meta capability mapping doesn't recurse through multiple meta definitions,
which creates a situation where the capabilities test is looking for the
non-existent primitive capability `edit_blocks`, which should instead be
mapped to `edit_posts`.
Defining the `edit_posts` capability when the `wp_block` post type is
registered causes this check to change to to the `edit_posts` capability.
Props aduth.
Fixes #45373.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45373#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list