Conversation
Set the module's Auto Activate header to No so new Jetpack connections and upgrades no longer turn it on, and stop Jetpack Protect from activating it on plugin activation. Existing sites keep their current setting, since neither activation path deactivates modules. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
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. Protect 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. |
Code Coverage SummaryCoverage changed in 1 file.
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved blocking issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Prevents Account Protection from activating automatically for new connections, upgrades, or Jetpack Protect activation while preserving existing settings.
Changes:
- Sets
Auto Activate: No. - Removes Protect’s explicit activation.
- Adds PHPUnit coverage and changelog entries.
| File | Description |
|---|---|
projects/plugins/protect/src/class-jetpack-protect.php |
Stops Protect from activating Account Protection. |
projects/plugins/protect/changelog/update-account-protection-no-auto-activate |
Documents the Protect behavior change. |
projects/plugins/jetpack/tests/php/general/Jetpack_Account_Protection_Auto_Activate_Test.php |
Verifies default module exclusions. |
projects/plugins/jetpack/modules/account-protection.php |
Disables automatic activation. |
projects/plugins/jetpack/changelog/update-account-protection-no-auto-activate |
Documents the Jetpack behavior change. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Proposed changes
Auto Activateheader toNo, so new Jetpack connections, and upgrades from versions before 14.5, no longer turn it on.account-protectionis not among the default modules for a new connection or for an upgrade from before 14.5.Closes #52708
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
Automated
jetpack docker phpunit jetpack -- --filter Jetpack_Account_Protection_Auto_Activate_TestJetpack
Jetpack Protect
Known follow-up (not in this PR): the breached-password notice in
packages/account-protection/src/class-password-detection.phpsays the feature "was automatically activated with a recent Jetpack update", which will no longer be accurate for sites that turn it on manually.🤖 Generated with Claude Code