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 );
}
/**