[wp-trac] [WordPress Trac] #53327: Twenty Twenty editor stylesheet causing issues on block Widgets screen
WordPress Trac
noreply at wordpress.org
Tue Jun 15 01:41:00 UTC 2021
#53327: Twenty Twenty editor stylesheet causing issues on block Widgets screen
---------------------------+---------------------
Reporter: isabel_brison | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+---------------------
Comment (by joyously):
This same issue will come up in any other new screens that are added, if
they all call the same hook that is labeled as the block editor. I think
that generalizing a hook is a bad thing, as all the other hooks are
specific. If plugins add metaboxes or try to affect the editor sidebar,
they will have the same problem because this is not the actual editor.
My theme also enqueues its own styles because it uses :root for custom
properties, and that doesn't work with the editor style processing. I was
going to say I think there are a lot of themes doing this, but I went and
searched and found 1058.
https://wpdirectory.net/search/01F86MQD78H4YP4HH659XSPXM6
I don't think "fixing" Twenty Twenty should even be considered, since this
is a documented hook and it is well used by many themes. New features
should be a bit more backward compatible than has been considered. The
widget screen doesn't need to match the front end, actually.
Perhaps what is needed is a 'load_blocks' sort of hook, that could be
called from the editor and from any new pages that involve blocks. That
way, blocks that want to participate would hook to that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53327#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list