Make WordPress Core

Changeset 61004


Ignore:
Timestamp:
10/21/2025 04:17:38 AM (4 months ago)
Author:
dmsnell
Message:

Charset: Update docblock comment in _wp_scan_utf8().

Rewording of comment to better clarify the purpose of the arguments as written.

Discussed in https://core.trac.wordpress.org/ticket/63863

Follow-up to [60768].

See #63863.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/compat-utf8.php

    r61000 r61004  
    2929 *     $at === 4; $invalid_length === 0;
    3030 *
    31  * Note! This functions many arguments are passed without and “options”
    32  * array. This choice is based on the fact that this is a low-level function
    33  * and there’s no need to create an array of items on every invocation.
     31 * Note! While passing an options array here might be convenient from a calling-code standpoint,
     32 *       this function is intended to serve as a very low-level foundation upon which to build
     33 *       higher level functionality. For the sake of keeping costs explicit all arguments are
     34 *       passed directly.
    3435 *
    3536 * @since 6.9.0
Note: See TracChangeset for help on using the changeset viewer.