Changeset 58147 for trunk/src/wp-includes/compat.php
- Timestamp:
- 05/14/2024 06:03:43 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/compat.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/compat.php
r57985 r58147 92 92 * charset just use built-in substr(). 93 93 */ 94 if ( ! i n_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true) ) {94 if ( ! is_utf8_charset( $encoding ) ) { 95 95 return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length ); 96 96 } … … 177 177 * just use built-in strlen(). 178 178 */ 179 if ( ! i n_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true) ) {179 if ( ! is_utf8_charset( $encoding ) ) { 180 180 return strlen( $str ); 181 181 }
Note: See TracChangeset
for help on using the changeset viewer.