WordPress.org

Make WordPress Core

Opened 2 months ago

#53912 new defect (bug)

Bug when using Block-styles loading enhancements in WP 5.8

Reported by: wilbertalvis Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General 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 (0)

Note: See TracTickets for help on using tickets.