[wp-trac] [WordPress Trac] #45373: New reusable block creation returning blank white screen

WordPress Trac noreply at wordpress.org
Fri Jan 18 19:33:08 UTC 2019


#45373: New reusable block creation returning blank white screen
------------------------------+-----------------------
 Reporter:  umakantsharmamwb  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.1
Component:  Editor            |     Version:  5.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  rest-api
------------------------------+-----------------------
Changes (by aduth):

 * keywords:  needs-patch => has-patch


Comment:

 The above patch adds a missing capabilities mapping from the registered
 `wp_block` post type from `edit_blocks` to `edit_posts`, since a role will
 never have the `edit_blocks` capability in a default installation.

 As noted by @desrosj / @designsimply , **this cannot be reproduced if you
 had ever had the Gutenberg plugin activated on a site.** To work around
 this, you must deactivate the Gutenberg plugin and reset user roles to
 their default values. I used the following plugin to achieve this:

 https://wordpress.org/plugins/reset-roles-and-capabilities/

 I detailed some more specific debugging information at the corresponding
 GitHub issue, relevant to the rationale for this change, and
 considerations for additional revisions.

 https://github.com/WordPress/gutenberg/issues/12324#issuecomment-455631774

 The above patch is intended to serve as a most minimal fix to the issue.

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


More information about the wp-trac mailing list