Forms: Remove duplicate display of form blocks under the Jetpack block inserter section#47614
Forms: Remove duplicate display of form blocks under the Jetpack block inserter section#47614DevinWalker wants to merge 1 commit intotrunkfrom
Conversation
…k inserter section
Removes the `registerBlockCollection('jetpack', ...)` call that caused all
`jetpack/*` namespace blocks to appear in both their own category (Forms,
Monetize, Grow, etc.) and a redundant "Jetpack" collection panel. Every
Jetpack block already has a specific category, so the collection provided
no additional discoverability.
Made-with: Cursor
|
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.
|
Fixes #
Proposed changes
registerBlockCollection('jetpack', ...)call fromblock-category.jsthat caused alljetpack/*namespace blocks to appear in both their own proper category (Forms, Monetize, Grow, Text, Media, etc.) and a redundant "Jetpack" collection panel in the block inserter.registerBlockCollectionPHP flag fromJetpack_Editor_Initial_Stateinclass.jetpack-gutenberg.php.Every Jetpack block already has a specific category assigned, so the "Jetpack" collection provided no additional discoverability — it only created confusing duplication, particularly for Forms blocks which appeared under both "Forms" and "Jetpack".
Other information
Related product discussion/links
JETPACK-1418 (peKye1-1418-p2)
Does this pull request change what data or activity we track or use?
No.
Testing instructions
Made with Cursor