Skip to content

Protect: Remove the jetpack-protect-dashboard feature flag - #55568

Open
enejb wants to merge 2 commits into
trunkfrom
remove/protect-dashboard-feature-flag
Open

enejb wants to merge 2 commits into
trunkfrom
remove/protect-dashboard-feature-flag

Conversation

@enejb

@enejb enejb commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Proposed changes

The jetpack-protect-dashboard feature flag has defaulted to on since #54055, so this removes it.

  • Jetpack_Protect_Dashboard_Feature_Flags no longer registers the flag or checks it. The protect-dashboard module is always available, except while the Jetpack Protect plugin is active. That check stays unchanged.
  • The DASHBOARD constant is gone. jetpack_feature_flag_enabled_jetpack-protect-dashboard no longer has any effect.
  • The class and file keep their names, so nothing public is renamed. A rename can follow with its own deprecation if we want it.
  • Sites that opted out: a site that returned false from jetpack_feature_flag_enabled_jetpack-protect-dashboard, or set a wp companion feature-flag override, 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 from jetpack_get_available_modules instead.
  • Tests: drop the flag-off cases and the filter the security menu matrix test added. In Main_Features_Test, rename the "flagged" module cases to "gated", since protect-dashboard is 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 a class_alias and 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

  • On a connected site running this branch, run wp eval 'var_export( \Automattic\Jetpack\Feature_Flags\Feature_Flags::get( "jetpack-protect-dashboard" ) );'. Expect NULL.
  • Go to Jetpack › Protect (wp-admin/admin.php?page=jetpack-protect-dashboard). The page still loads.
  • Run wp eval 'echo (int) in_array( "protect-dashboard", Jetpack::get_available_modules(), true );'. Expect 1.
  • Install and activate the Jetpack Protect plugin, then run the same command. Expect 0, since the module still hides while that plugin is active.
  • CI: Jetpack_Protect_Dashboard_Feature_Flags_Test and Jetpack_Security_Menu_Matrix_Test pass.

@enejb enejb added the [Status] Needs Review This PR is ready for review. label Nov 28, 2026
@enejb enejb self-assigned this Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 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), and enable the remove/protect-dashboard-feature-flag branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack remove/protect-dashboard-feature-flag

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 [Package] My Jetpack [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress [Tests] Includes Tests labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 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:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: December 8, 2026
    • Code freeze: December 7, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@jp-launch-control

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 1 file.

File Coverage Δ% Δ Uncovered
projects/plugins/jetpack/_inc/lib/class-jetpack-protect-dashboard-feature-flags.php 13/18 (72.22%) 20.37% -8 💚

Full summary · PHP report · JS report

@enejb
enejb marked this pull request as ready for review November 28, 2026 06:51

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] My Jetpack [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress [Status] Needs Review This PR is ready for review. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant