From c80a63590900f722b22e0fd2bada6ec953af9ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=83=C2=B3=C3=85=E2=80=9Akowski?= 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: https://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 80757baabc..9f58a5fe45 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 e9d9085807..27bd66fe80 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.