Changes between Version 3 and Version 10 of Ticket #52920
- Timestamp:
- 04/01/2021 10:26:29 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #52920
- Property Keywords has-unit-tests dev-feedback added
-
Ticket #52920 – Description
v3 v10 3 3 Prior art in Gutenberg: https://github.com/WordPress/gutenberg/pull/28701. 4 4 5 Changes proposed so far: 5 Changes included so far: 6 - `wp-format-library` assets are always loaded for the block editor with the corresponding hook 7 - most of the settings that are defined on the client in the block editor package in https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/store/defaults.js are already exposed from the new `get_default_block_editor_settings` method 8 - the logic that preloads common data used with the block editor by processing an array of REST API paths is now abstracted in `block_editor_preload_api_requests` method 6 9 7 - most of the settings that are defined on the client in the block editor package in https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/store/defaults.js get exposed from the new `get_default_block_editor_settings` method 8 - shared block editor configuration gets abstracted in the new `block_editor_configure` method 9 - `wp-format-library` assets are always loaded for the block editor with the corresponding hook 10 All existing filters that depend on `$post` object get deprecated with `apply_filters_deprecated` as suggested by @jeremyfelt: 11 - `allowed_block_types` 12 - `block_editor_preload_paths` 13 - `block_categories` 10 14 11 To explore: 12 13 - deprecating existing filters with `apply_filters_deprecated` as suggested by @jeremyfelt: 14 - `allowed_block_types` 15 - `block_editor_preload_paths` 16 - `block_categories` 17 - introducing new filters that aren't tied to the `$post` object 15 New filters are introduced that are context-aware: 16 - `allowed_block_types_{$editor_name}` 17 - `block_editor_preload_paths_{$editor_name}` 18 - `block_categories_{$editor_name}`