Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#51569 closed defect (bug) (invalid)

Fix for current_parsed_blocks value when block has inner blocks

Reported by: mkaz's profile mkaz Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:


In 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:

Attachments (1)

51569.diff (1.0 KB) - added by mkaz 3 years ago.

Download all attachments as: .zip

Change History (4)

3 years ago

#1 @oandregal
3 years ago

This is being ported as part of Should we perhaps let that PR take care of the updating and close this patch?

#2 @mkaz
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Closing per @nosolosw comment above that it will get ported as part of WP/Gutenberg release.

#3 @desrosj
3 years ago

  • Component changed from General to Editor
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.