Changeset 55652 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 04/15/2023 12:09:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r55651 r55652 899 899 } 900 900 for ( $j = 0; $j < $n; $j++ ) { // n bytes matching 10bbbbbb follow ? 901 if ( ( ++$i == $length ) || ( ( ord( $str[ $i ] ) & 0xC0 ) != 0x80 ) ) {901 if ( ( ++$i === $length ) || ( ( ord( $str[ $i ] ) & 0xC0 ) != 0x80 ) ) { 902 902 return false; 903 903 } … … 5139 5139 while ( $len > $start ) { 5140 5140 // Last character: append and break. 5141 if ( strlen( $pattern ) - 1 == $start ) {5141 if ( strlen( $pattern ) - 1 === $start ) { 5142 5142 $result .= substr( $pattern, -1 ); 5143 5143 break;
Note: See TracChangeset
for help on using the changeset viewer.