Make WordPress Core

Opened 22 months ago

Last modified 17 months ago

#53912 new defect (bug)

Bug when using Block-styles loading enhancements in WP 5.8

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

Description

I'm not sure if this is a a bug, but when enabling this feature on Windows some of the blocks assets are not loaded on the frontend.

When checking the register_block_style_handle function, some blocks are ignored as the $is_core_block variable is false due to slash inconsistencies in the $metadata['file'] variable.

Style of blocks that are registered from register_core_block_types_from_metadata are loaded, but the blocks that are registered from their respective directory; such as register_block_core_latest_comments are not loaded.

Thank you!

Change History (1)

#1 @sabernhardt
18 months ago

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