-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blocks: Apply the most recent filters to previously registered blocks (…
…#34299) * Blocks: Try to split block registration from filtering * Experiment with data control for processing block settings * Add store controls that reapplies block type filters * Add test block and filter to validate if it works * Meassure impact on the loading time when 100 custom blocks and filters registerd * Reapply block type filters for all editor screens * Remove test code examples * Improve code documentation for new functionality * Remove broken functionality in the block types reducer * Apply suggestions from code review * Provide the default value for variations iin block type to align with WordPress core * Improve handling for block styles and variations when `ADD_BLOCK_TYPES` called again * Update buildBlockTypeItem to correctly fetch block type variations * Test: Add e2e test that ensures that filters can be added after block registration * Blocks: Move logic to actions and remove controls * Rename __experimentalAddBlockType to __experimentalRegisterBlockType * Improve the description for __experimentalReapplyBlockTypeFilters
- Loading branch information
Showing
16 changed files
with
469 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.