Editor: Avoid double escaping on value passed for attribute in HTML tag processor
Fix for the Block Bindings processing. See https://github.com/WordPress/wordpress-develop/pull/5888#discussion_r1476793062. Props: czapla, dmsnell, gziolo. Built from https://develop.svn.wordpress.org/trunk@57561 git-svn-id: http://core.svn.wordpress.org/trunk@57062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d374ffc6b
commit
b89d86bde8
|
@ -376,7 +376,7 @@ class WP_Block {
|
|||
) ) {
|
||||
return $block_content;
|
||||
}
|
||||
$amended_content->set_attribute( $block_type->attributes[ $attribute_name ]['attribute'], esc_attr( $source_value ) );
|
||||
$amended_content->set_attribute( $block_type->attributes[ $attribute_name ]['attribute'], $source_value );
|
||||
return $amended_content->get_updated_html();
|
||||
break;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57560';
|
||||
$wp_version = '6.5-alpha-57561';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue