-
Notifications
You must be signed in to change notification settings - Fork 852
Custom CSS: Adding an Additional CSS menu item on JP activation #23670
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
Conversation
…ce CSS' feature trigger
…to avoid confusion
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
|
Opening this up for initial reviews for now so that it doesn't sit for several weeks. |
I think that is a great idea! I'll look into adding that too. |
|
New changes ready for review (new PHPCS errors came up as well, my fix was relatively quick so may need more eyes - related to |
samiff
left a comment
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.
Tested this again with 2020/2022 themes and both worked great 👍 I like the redirect to the settings page to enable the module now.
|
It looks like this might have introduced a regression with #19965 (and 693-gh-Automattic/wpcomsh), where on WoA sites without a plan it now displays two "Additional CSS" menu items, with the one introduced here linking to an empty search result for Custom CSS. Maybe this else clause could check for the custom-css feature before adding that link? |
|
Thanks for reporting this @obenland . We're aiming to have a fix in for the next Atomic weekly release this week. |
Remove Customizer removal, introduced in #23670

Fixes #23598
Changes proposed in this Pull Request:
Jetpack product discussion
p9dueE-4DZ-p2
p1HpG7-eWn-p2
p1648132696510739/1648051014.297169-slack-C029LRAU2
Does this pull request change what data or activity we track or use?
No.
Questions:
customizer_linkis duplicated now - it’s inclass.jetpack-admin.phpandcustom-css-4.7.php. Calling it from one or the other file means requiring the opposite file and generating a new instance of the class just to reach that file. I’m uncomfortable about duplicating the function however it would rarely be used incustom-css-4.7php.Testing instructions: