[wp-trac] [WordPress Trac] #61591: Multiple bundled themes: block editor style is added incorrectly
WordPress Trac
noreply at wordpress.org
Mon Jul 8 10:47:33 UTC 2024
#61591: Multiple bundled themes: block editor style is added incorrectly
---------------------------+-----------------------------
Reporter: poena | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
When I open the post editor or the pattern editor I see the following
JavaScript Warning in the editor:
{{{
index.js:177 twentyeleven-block-editor-style-css was added to the iframe
incorrectly.
Please use block.json or enqueue_block_assets to add styles to the iframe.
<link rel="stylesheet" id="twentyeleven-block-editor-style-css"
href="http://66.local/wp-content/themes/twentyeleven/editor-
blocks.css?ver=20220927" media="all">
}}}
https://developer.wordpress.org/reference/hooks/enqueue_block_editor_assets/
is used to style the interface.
https://developer.wordpress.org/reference/hooks/enqueue_block_assets/
should be used to style blocks in the editors.
The CSS file seems to contain both.
== Themes tested
The warning appears in:
Twenty Ten
Twenty Eleven
Twenty Twelve
Twenty Thirteen
Twenty Fourteen
Twenty Fifteen
Twenty Sixteen
Twenty Seventeen
Twenty Nineteen, 20, 21 do not have this warning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61591>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list