Skip to content

Commit 59e07af

Browse files
committed
HTML API: Add missing @global tag on HTML Decoder.
The `@global` documentation has been missing in the `class-wp-html-decoder.php` file, and this patch adds it. Discussed in https://core.trac.wordpress.org/ticket/61968 Props dmsnell, jonsurrell, shailu25. Resolves #61968. git-svn-id: https://develop.svn.wordpress.org/trunk@58965 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 68805bf commit 59e07af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ public static function decode( $context, $text ): string {
196196
*
197197
* @since 6.6.0
198198
*
199+
* @global WP_Token_Map $html5_named_character_references Mappings for HTML5 named character references.
200+
*
199201
* @param string $context `attribute` for decoding attribute values, `data` otherwise.
200202
* @param string $text Text document containing span of text to decode.
201203
* @param int $at Optional. Byte offset into text where span begins, defaults to the beginning (0).

0 commit comments

Comments
 (0)