Repository navigation
wpcomsh: Stop forcing the Activity Log module on - #53559
Conversation
Removes the jetpack_feature_policy callback that pinned activity-log on for every Atomic site, along with its test and the matching remove_filter in the Jetpack test bootstrap. The module stays in the post-transfer activation list, so it is still on by default.
|
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: No scheduled milestone found for this 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. |
The forced-on policy was added and removed between releases, so the net change is that Activity Log is turned on after a transfer or reset. Reword the earlier wpcomsh entry to say that, and drop the entries describing the policy and its test workaround.
Code Coverage SummaryCoverage changed in 1 file.
|
Fixes JETPACK-3020
Proposed changes
activity-logmodule on for every Atomic site. wpcomsh: Keep Activity Log module on for WoA sites #53546 added ajetpack_feature_policycallback in wpcomsh to get the Jetpack › Activity Log menu item back on newly transferred sites. It also took the switch away: My Jetpack showed "Enabled by your host or site administrator" and deactivating the module didn't stick.feature-plugins/activity-log.php), its test, and theremove_filter()the Jetpack test bootstrap needed to work around it.activity-login the post-transfer activation list inwoa.php. With the policy gone, that entry now does real work: it is what turns the module on after a transfer or reset.Activity Log stays on by default. The stored module list is already right on existing sites (JETPACK-3019), and transfers now seed the module, so nothing depends on the policy any more. Turning the module off only hides the wp-admin page. Activity is still recorded through Sync.
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
On a WoA test site running Jetpack 16.3 or later, with this branch's wpcomsh:
wp jetpack module deactivate activity-log, thenwp jetpack module activate activity-log. Both should report success and stick.wp wpcomsh post-transferwith the module off.activity-logshould be listed as activated, and the menu item should be back.