Repository navigation
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 1 file.
|
Proposed changes
The
jetpack-protect-dashboardfeature flag has defaulted to on since #54055, so this removes it.Jetpack_Protect_Dashboard_Feature_Flagsno longer registers the flag or checks it. Theprotect-dashboardmodule is always available, except while the Jetpack Protect plugin is active. That check stays unchanged.DASHBOARDconstant is gone.jetpack_feature_flag_enabled_jetpack-protect-dashboardno longer has any effect.jetpack_feature_flag_enabled_jetpack-protect-dashboard, or set awp companion feature-flagoverride, gets the module offered again. If it upgrades from 16.3.x or earlier, the module is also turned on. Nothing in this repo or on WordPress.com hooks that filter. To keep the module off, drop it fromjetpack_get_available_modulesinstead.Main_Features_Test, rename the "flagged" module cases to "gated", sinceprotect-dashboardis no longer behind a flag. Update comments in My Jetpack that mentioned the flag.Follow-up: the class name still says
Feature_Flags. Renaming it needs aclass_aliasand a deprecation, so it is left for a separate PR.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
wp eval 'var_export( \Automattic\Jetpack\Feature_Flags\Feature_Flags::get( "jetpack-protect-dashboard" ) );'. ExpectNULL.wp-admin/admin.php?page=jetpack-protect-dashboard). The page still loads.wp eval 'echo (int) in_array( "protect-dashboard", Jetpack::get_available_modules(), true );'. Expect1.0, since the module still hides while that plugin is active.Jetpack_Protect_Dashboard_Feature_Flags_TestandJetpack_Security_Menu_Matrix_Testpass.