[wp-trac] [WordPress Trac] #51569: Fix for current_parsed_blocks value when block has inner blocks

WordPress Trac noreply at wordpress.org
Mon Oct 19 20:50:45 UTC 2020


#51569: Fix for current_parsed_blocks value when block has inner blocks
--------------------------+-----------------------------
 Reporter:  mkaz          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In https://github.com/WordPress/gutenberg/pull/26192 we refactored the
 block supports mechanism. It works by holding a global
 $current_parsed_blocks reference that it uses to determine the attributes
 that it needs to add to blocks.

 However, when a block has inner blocks, that reference isn't updated so
 inner blocks end up inheriting the parent's properties (style and
 classes).


 Related Gutenberg ticket:
 https://github.com/WordPress/gutenberg/pull/26291

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


More information about the wp-trac mailing list