Skip to content

Commit c80a635

Browse files
committed
Editor: Avoid double escaping on value passed for attribute in HTML tag processor
Fix for the Block Bindings processing. See WordPress/wordpress-develop#5888 (comment). Props: czapla, dmsnell, gziolo. Built from https://develop.svn.wordpress.org/trunk@57561 git-svn-id: https://core.svn.wordpress.org/trunk@57062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 1812b45 commit c80a635

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

wp-includes/class-wp-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private function replace_html( string $block_content, string $attribute_name, $s
376376
) ) {
377377
return $block_content;
378378
}
379-
$amended_content->set_attribute( $block_type->attributes[ $attribute_name ]['attribute'], esc_attr( $source_value ) );
379+
$amended_content->set_attribute( $block_type->attributes[ $attribute_name ]['attribute'], $source_value );
380380
return $amended_content->get_updated_html();
381381
break;
382382

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.5-alpha-57560';
19+
$wp_version = '6.5-alpha-57561';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)