Global styles: block level styles are enqueued twice #42206
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
Since #42005, global block styles are enqueued twice:
global-styles-inline-css
This causes duplicate styles in
styles.blocks[ $block_name ]
rendered to the HTML.Before
After
Step-by-step reproduction instructions
Add some block styles to your theme.json. Any block will do.
I'm using emptytheme and the Social links block as an example.
Example theme.json
Create a post with that block and publish it.
Example block code
Inspect the block HTML and see that the styles are applied twice.
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: