Make WordPress Core

Opened 8 months ago

#59364 new defect (bug)

When editing Styles > Layout or Block > * > Dimensions, every possible (and unnecessary) combination of global settings is copied to custom styles

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


In the site editor, when making changes in Styles > Layout, it looks like every possible core block style and setting is copied and saved in the custom styles (wp_global_styles).

This results in a ton of unnecessary global styles and settings, such as default colors and default font sizes, even in a theme that has defined settings.color.defaultPalette as false for example.

As far as I can tell the only styles option that triggers this are the options in Styles > Layout.
I've tried other options such as Typography, Colors, and individual block settings, and they all seem to work as expected in that the only thing saved in the custom styles is the option being edited.

No issue with WP 6.2.2
It seems this bug was introduced in WP 6.3

The Gutenberg issue for reference:

Change History (0)

Note: See TracTickets for help on using tickets.