Make WordPress Core

Opened 3 years ago

Last modified 6 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: reporter-feedback
Focuses: Cc:


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 (2)

#1 @sabernhardt
3 years ago

  • Component changed from General to Editor

#2 @poena
6 months ago

  • Keywords reporter-feedback added

Hi @wilbertalvis
Do you know if this is still a problem in newer versions of WordPress? Please add step by step testing instructions for how to reproduce the problem.

Note: See TracTickets for help on using tickets.