Changes between Initial Version and Version 2 of Ticket #62069
- Timestamp:
- 09/18/2024 10:09:53 AM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62069 – Description
initial v2 24 24 }}} 25 25 26 In the gutenberg plugin th ese individual bindings areassigned back to the block before rendering so that the block can reason about which individual attributes are bound:26 In the gutenberg plugin this updated bindings metadata is assigned back to the block before rendering so that the block can reason about which individual attributes are bound: 27 27 https://github.com/WordPress/gutenberg/blob/98b8d415830fa9ebf7b4b0a2b95d65b9fd1e813a/lib/compat/wordpress-6.6/blocks.php#L40 28 28 29 This allows blocks like the image block to check whether an individual attribute, like `id` has a binding:29 This allows blocks like the image block to check whether an individual attribute, like `id`, has a binding: 30 30 https://github.com/WordPress/gutenberg/blob/98b8d415830fa9ebf7b4b0a2b95d65b9fd1e813a/packages/block-library/src/image/index.php#L31 31 31 32 Unfortunately core doesn't have the same logic to assign the individual bindings back to the block before rendering, which means the image block's logic fails. Any block that renders just receives the individual `__default` binding.32 Unfortunately, WordPress core doesn't have the same logic to assign the updated binding metadata back to the block before rendering, which means the image block's logic fails. The block only receives the individual __default binding in its metadata. 33 33