From ff3094679d0d038afee8427820a94bf3dda6705d Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Fri, 26 Apr 2024 17:03:21 +0300 Subject: [PATCH] Update call-sites to use the new context param --- src/wp-includes/html-api/class-wp-html-decoder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/html-api/class-wp-html-decoder.php b/src/wp-includes/html-api/class-wp-html-decoder.php index 05b10cf4af355..94f6e798ff238 100644 --- a/src/wp-includes/html-api/class-wp-html-decoder.php +++ b/src/wp-includes/html-api/class-wp-html-decoder.php @@ -118,7 +118,7 @@ public static function attribute_starts_with( $raw_haystack, $value_at, $value_l * @return string Decoded value of given text node. */ public static function decode_text_node( $text, $at = 0, $length = null ) { - return static::decode( true, $text, $at, $length ); + return static::decode( 'data', $text, $at, $length ); } /** @@ -148,7 +148,7 @@ public static function decode_text_node( $text, $at = 0, $length = null ) { * @return string Decoded value of given attribute value. */ public static function decode_attribute( $text, $at = 0, $length = null ) { - return static::decode( false, $text, $at, $length ); + return static::decode( 'attribute', $text, $at, $length ); } /**