Make WordPress Core

Changeset 61283


Ignore:
Timestamp:
11/23/2025 05:58:15 AM (3 months ago)
Author:
westonruter
Message:

Docs: Fix return type for WP_HTML_Decoder::read_character_reference().

Developed in https://github.com/WordPress/wordpress-develop/pull/8945

Follow-up to [58281].

Props justlevine.
See #64238, #61072.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-decoder.php

    r58965 r61283  
    204204     * @param int    &$match_byte_length Optional. Set to byte-length of character reference if provided and if a match
    205205     *                                   is found, otherwise not set. Default null.
    206      * @return string|false Decoded character reference in UTF-8 if found, otherwise `false`.
     206     * @return ?string Decoded character reference in UTF-8 if found, otherwise null.
    207207     */
    208208    public static function read_character_reference( $context, $text, $at = 0, &$match_byte_length = null ) {
Note: See TracChangeset for help on using the changeset viewer.