Skip to content

Commit 6a2ddd5

Browse files
committed
Add since/private to substr polyfill
1 parent 0a4f0fe commit 6a2ddd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wp-includes/compat-utf8.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ function _wp_utf8_codepoint_count( string $text, ?int $byte_offset = 0, ?int $ma
346346
* to the maximal subpart rule. This function is a fallback method
347347
* for calling `mb_strlen( $text, 'UTF-8' )`.
348348
*
349+
* @since 6.9.0
350+
* @access private
351+
*
349352
* @param string $text Count bytes of span in this text.
350353
* @param int $at Start counting at this byte offset.
351354
* @param int $max_code_points Stop counting after this many code points

0 commit comments

Comments
 (0)