Command Palette: Change link destination of "Customize CSS" for non-block themes#65155
Command Palette: Change link destination of "Customize CSS" for non-block themes#65155
Conversation
|
Size Change: +55 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Why is this step required for the "customize CSS" command to be registered? (especially if it goes to the customizer) |
|
Thanks for the review!
In the case of a theme that does not have a theme.json, Therefore, in order to reproduce the problem, we will need to explicitly add theme.json. In themes that do not have a theme.json, I assume that it is the expected specification that |
That seems correct but I think check shouldn't apply to classic themes as they don't care about whether there's a global styles id, the customizer CSS panel is always there no? |
As far as I know, there is no way to disable the Customizer CSS section. Even in the core, it doesn't seem to check whether Customizer CSS is present: However, there is a |
|
Closing this in favor of #77685 |
Fixes #64932
What?
This PR changes the link destination of the "Customize" command to the Customizer for non-block themes.
Why?
The additional CSS in the site editor is part of the global styles. Currently, non-block themes do not have access to this additional CSS.
How?
I considered disabling the command itself, but decided to link it to the Customizer.
The Customizer can automatically open any section via the
autofocusURL parameter.Testing Instructions
Please update your local environment to the nightly version beforehand, because there was a reported issue with
autofocusnot working, which was recently fixed: https://core.trac.wordpress.org/ticket/61561Screenshots or screencast
37a30f870be3a13d4d459de9a152c649.mp4