Changeset 47550 for trunk/src/wp-includes/compat.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/compat.php
r47219 r47550 90 90 * charset just use built-in substr(). 91 91 */ 92 if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {92 if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) { 93 93 return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length ); 94 94 } … … 174 174 * just use built-in strlen(). 175 175 */ 176 if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {176 if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) { 177 177 return strlen( $str ); 178 178 }
Note: See TracChangeset
for help on using the changeset viewer.