Forms: Enable Central Forms Management by default for all sites#47826
Forms: Enable Central Forms Management by default for all sites#47826
Conversation
Flip the jetpack_forms_alpha filter default from false to true and add the central-form-management editor feature flag from within the Forms package. This makes CFM available to all sites including self-hosted Jetpack installations, without requiring a feature flag. The wpcom flags file is updated to explicitly disable CFM for excluded sites (e2e test, disable sticker) rather than enabling for included ones, preserving the opt-out mechanism. Co-Authored-By: Claude Opus 4.6 (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. |
Code Coverage SummaryCoverage changed in 2 files.
|
…eation With CFM enabled by default, clicking the variation picker creates a synced form whose title comes from the variation (not the block's formTitle attribute). The test then fails looking for a form with the original title. Provide explicit innerBlocks when inserting the form block, matching the pattern already used by the second test. This keeps the form inline and preserves the formTitle attribute. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Proposed changes
jetpack_forms_alphafilter default fromfalsetotrueinclass-dashboard.php(4 call sites) andclass-contact-form-plugin.php(1 call site).central-form-managementeditor feature flag from within the Forms package via a newenable_central_form_management_flagfilter callback at default priority (10), so it works out of the box without external configuration.jetpack-mu-wpcomflags to explicitly disable CFM for excluded WordPress.com sites (e2e test sites,disable-central-forms-managementsticker) instead of enabling for included ones.Other information
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
Self-hosted / Jetpack site (the new behavior)
jetpack-forms-admin).jetpack-forms-responses-wp-admin) with forms management, responses, and all CFM features.Opt-out via filter
add_filter( 'jetpack_forms_alpha', '__return_false' );to a plugin or theme.WordPress.com (no regression)
disable-central-forms-managementsticker, verify the legacy dashboard loads instead.