-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow default duotone styles in classic themes. #57191
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/class-wp-theme-json-resolver-gutenberg.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know all the history behind the decision to not have defaults enabled for themes without their own, but it seems that at least since #49103 filters are no longer output on every page, so if that was the concern it should be OK to enable now.
I honestly don't fully remember either, but enabling them now sounds good to me. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so if that was the concern it should be OK to enable now.
I imagine that was the main concern, so that classic themes that aren't using Duotone don't output unneeded markup or styles. So sounds like it's unblocked!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reviews folks! |
@tellthemachines You've removed the Apologies if you've already done this and I missed it 🙇 |
@getdave could you please read through the history previous to the label removal, you'll see there's a link to a core backport PR that has been committed. For tracking purposes, the backport label is removed as soon as the backport is concluded. |
Thanks. |
✅ I updated this PR with the |
What?
Fixes one of the issues detected in #56131, although it's not specific to classic themes with support for appearance tools, but all classic themes and block themes without theme duotone presets.
This allows the default duotone presets to display if they're not explicitly disabled in theme.json.
I don't know all the history behind the decision to not have defaults enabled for themes without their own, but it seems that at least since #49103 filters are no longer output on every page, so if that was the concern it should be OK to enable now.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast