WordPress.org

Make WordPress Core

Opened 4 days ago

Last modified 4 days ago

#53375 new defect (bug)

Loading seperate core block assets tries to load stylesheets on blocks that dosn't have styles

Reported by: walbo Owned by:
Milestone: 5.8 Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

In [51102] support for adding inline styles for all blocks was added, but this makes WP register styles to non-existing stylesheets.

Steps to replicate:

  1. Add add_filter( 'should_load_separate_core_block_assets', '__return_true' );
  2. Insert a block that dosn't have a block css. Ex. core/column.
  3. Visit the page and check the network tab to confirm that WP tries to load /wp-includes/blocks/column/style.css with status 404.

In Gutenberg this was fixed by adding false url to blocks that dosn't have a stylesheet. See https://github.com/WordPress/gutenberg/pull/32275

Related: #53358

Change History (2)

This ticket was mentioned in PR #1362 on WordPress/wordpress-develop by walbo.


4 days ago

  • Keywords has-patch added

#2 @SergeyBiryukov
4 days ago

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