Changeset 59095 for trunk/src/wp-includes/class-wp-block.php
- Timestamp:
- 09/26/2024 02:49:13 PM (18 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-block.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block.php
r59080 r59095 238 238 * @since 6.5.0 239 239 * @since 6.6.0 Handle the `__default` attribute for pattern overrides. 240 * @since 6.7.0 Return any updated bindings metadata in the computed attributes. 240 241 * 241 242 * @return array The computed block attributes for the provided block bindings. … … 285 286 } 286 287 $bindings = $updated_bindings; 288 /* 289 * Update the bindings metadata of the computed attributes. 290 * This ensures the block receives the expanded __default binding metadata when it renders. 291 */ 292 $computed_attributes['metadata'] = array_merge( 293 $parsed_block['attrs']['metadata'], 294 array( 'bindings' => $bindings ) 295 ); 287 296 } 288 297
Note: See TracChangeset
for help on using the changeset viewer.