-
Notifications
You must be signed in to change notification settings - Fork 812
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
MU WPCOM: Filter out the full-site-editing plugin from the active_plugins list if the plugin file doesn't exist (2nd try) #41887
Conversation
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. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Mu Wpcom plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Code Coverage SummaryCoverage changed in 1 file.
1 file is newly checked for coverage.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
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.
LGTM
Tested the following code to see whether it works if the value is a string. Now it works successfully.
|
Related to p1737694462032909/1737565339.870709-slack-CRWCHQGUB, 169775-ghe-Automattic/wpcom
Proposed changes:
UPDATE
This is the 2nd try and the previous one, #41841, has been reverted by #41886 because of the error below. See p1739932956773779-slack-C4N88L95W
It should be fixed by c7e93ce. But, weirdly, I cannot reproduce this issue on my wpcom site as it gets an array instead of empty string 🫠
full-site-editing
was removed using the task API with the CLI command below. However, this caused an issue where the plugin is still listed in theactive_plugins
option. Therefore, this PR filters it out from active_plugins if the plugin file has already been removed.wp --skip-plugins --skip-themes plugin delete full-site-editing
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
wp --skip-plugins --skip-themes plugin delete full-site-editing
full-site-editing
plugin is still listed in theactive_plugins
optionwp option get active_plugins
full-site-editing
plugin should not be listed in theactive_plugins
option