Skip to content

Commit

Permalink
Use multiline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jun 3, 2024
1 parent ef2f760 commit 45b91d6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/wp-includes/class-wp-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,21 @@ private function process_block_bindings() {

$bindings = $parsed_block['attrs']['metadata']['bindings'];

// If the default binding is set for pattern overrides, replace it
// with a pattern override binding for all supported attributes.
/*
* If the default binding is set for pattern overrides, replace it
* with a pattern override binding for all supported attributes.
*/
if (
isset( $bindings['__default']['source'] ) &&
'core/pattern-overrides' === $bindings['__default']['source']
) {
$updated_bindings = array();

// Build an binding array of all supported attributes.
// Note that this also omits the `__default` attribute from the
// resulting array.
/*
* Build an binding array of all supported attributes.
* Note that this also omits the `__default` attribute from the
* resulting array.
*/
foreach ( $supported_block_attributes[ $parsed_block['blockName'] ] as $attribute_name ) {
// Retain any non-pattern override bindings that might be present.
$updated_bindings[ $attribute_name ] = isset( $bindings[ $attribute_name ] )
Expand Down

0 comments on commit 45b91d6

Please sign in to comment.