Skip to content

Commit ff30946

Browse files
committed
Update call-sites to use the new context param
1 parent f991add commit ff30946

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/html-api/class-wp-html-decoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static function attribute_starts_with( $raw_haystack, $value_at, $value_l
118118
* @return string Decoded value of given text node.
119119
*/
120120
public static function decode_text_node( $text, $at = 0, $length = null ) {
121-
return static::decode( true, $text, $at, $length );
121+
return static::decode( 'data', $text, $at, $length );
122122
}
123123

124124
/**
@@ -148,7 +148,7 @@ public static function decode_text_node( $text, $at = 0, $length = null ) {
148148
* @return string Decoded value of given attribute value.
149149
*/
150150
public static function decode_attribute( $text, $at = 0, $length = null ) {
151-
return static::decode( false, $text, $at, $length );
151+
return static::decode( 'attribute', $text, $at, $length );
152152
}
153153

154154
/**

0 commit comments

Comments
 (0)