Skip to content

Commit

Permalink
Update src/wp-includes/class-wp-block.php
Browse files Browse the repository at this point in the history
Co-authored-by: Mukesh Panchal <mukeshpanchal27@users.noreply.github.com>
  • Loading branch information
gziolo and mukeshpanchal27 committed Feb 2, 2024
1 parent 2944c82 commit 668fe1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-block.php
Expand Up @@ -274,7 +274,7 @@ private function process_block_bindings( $block_content ) {
$source_args = ! empty( $block_binding['args'] ) && is_array( $block_binding['args'] ) ? $block_binding['args'] : array();
$source_value = call_user_func_array( $source_callback, array( $source_args, $this, $attribute_name ) );

// If the value is not null, process the HTML based on the block and the attribute
// If the value is not null, process the HTML based on the block and the attribute.
if ( ! is_null( $source_value ) ) {
$modified_block_content = $this->replace_html( $modified_block_content, $attribute_name, $source_value );
}
Expand Down

0 comments on commit 668fe1b

Please sign in to comment.