Skip to content

Commit

Permalink
Update call-sites to use the new context param
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Apr 26, 2024
1 parent f991add commit ff30946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/html-api/class-wp-html-decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit ff30946

Please sign in to comment.