Skip to content

wpcomsh: Stop forcing the Activity Log module on - #53559

Merged
kraftbj merged 2 commits into
trunkfrom
remove/wpcomsh-activity-log-forced-on-JETPACK-3020
Oct 13, 2026
Merged

kraftbj merged 2 commits into
trunkfrom
remove/wpcomsh-activity-log-forced-on-JETPACK-3020

Conversation

@kraftbj

@kraftbj kraftbj commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes JETPACK-3020

Proposed changes

  • Stop forcing the activity-log module on for every Atomic site. wpcomsh: Keep Activity Log module on for WoA sites #53546 added a jetpack_feature_policy callback 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.
  • Remove that callback (feature-plugins/activity-log.php), its test, and the remove_filter() the Jetpack test bootstrap needed to work around it.
  • Keep activity-log in the post-transfer activation list in woa.php. With the policy gone, that entry now does real work: it is what turns the module on after a transfer or reset.
  • Collapse the changelog. The policy was added and removed between releases, so the earlier wpcomsh entry is reworded to the net change (Activity Log is turned on after a transfer or reset), and the earlier Jetpack plugin entry, which only described the test workaround, is removed.

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:

  • Confirm Jetpack › Activity Log is still in the menu.
  • With the Classic admin interface on a Business plan, go to My Jetpack › Features. Activity Log should show a working switch rather than "Enabled by your host or site administrator".
  • Turn it off. The Jetpack › Activity Log menu item should go away, and it should stay off after a reload.
  • Run wp jetpack module deactivate activity-log, then wp jetpack module activate activity-log. Both should report success and stick.
  • Run wp wpcomsh post-transfer with the module off. activity-log should be listed as activated, and the menu item should be back.

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.
@kraftbj kraftbj added the [Status] Needs Review This PR is ready for review. label Oct 13, 2026
@kraftbj kraftbj self-assigned this Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack or WordPress.com Site Helper), and enable the remove/wpcomsh-activity-log-forced-on-JETPACK-3020 branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack remove/wpcomsh-activity-log-forced-on-JETPACK-3020

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Wpcomsh [Tests] Includes Tests labels Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

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:

  • Next scheduled release: Atomic deploys happen twice daily on weekdays (p9o2xV-2EN-p2)

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.
@jp-launch-control

jp-launch-control Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 1 file.

File Coverage Δ% Δ Uncovered
projects/plugins/wpcomsh/wpcomsh.php 68/323 (21.05%) 0.06% -1 💚

Full summary · PHP report · JS report

@kraftbj
kraftbj merged commit 057e60e into trunk Oct 13, 2026
87 checks passed
@kraftbj
kraftbj deleted the remove/wpcomsh-activity-log-forced-on-JETPACK-3020 branch October 13, 2026 17:58
@github-actions github-actions Bot added [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. and removed [Status] Needs Review This PR is ready for review. labels Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Wpcomsh [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant