From b89d86bde803383c5758e5efffcc8ad7097e77c5 Mon Sep 17 00:00:00 2001 From: gziolo Date: Thu, 8 Feb 2024 08:42:07 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-block.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php index 80757baabce..9f58a5fe45d 100644 --- a/wp-includes/class-wp-block.php +++ b/wp-includes/class-wp-block.php @@ -376,7 +376,7 @@ private function replace_html( string $block_content, string $attribute_name, $s ) ) { 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; diff --git a/wp-includes/version.php b/wp-includes/version.php index e9d9085807e..27bd66fe80d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.