[wp-trac] [WordPress Trac] #53136: Error with "Add to Reuse Block" in WordPree 5.7.1

WordPress Trac noreply at wordpress.org
Mon May 3 08:10:05 UTC 2021


#53136: Error with "Add to Reuse Block" in WordPree 5.7.1
--------------------------+-----------------------------
 Reporter:  sawamura      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.7.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Error when "adding the first paragraph style to the reuse block" in a new
 post with `core/paragraph` added (or used) in `register_block_style()` in
 WordPree 5.7.1 The error message is

 Error statement
 The editor has encountered an unexpected error

 Additional code (functions.php / Theme: Twenty Twenty-One)


 {{{#!php
 <?php
 register_block_style(
 'core/paragraph',
 array(
 'name' => 'blue-paragraph',
 'label' => __( 'Blue paragraph' ),
 'inline_style' => '.is-style-blue-paragraph { color: blue; }',
 )
 );
 }}}

 [[Image(https://f.easyuploader.app/20210503102556_54394978.gif)]]
 [[Image(https://f.easyuploader.app/20210503102810_6e724b33.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53136>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list