Changeset 55652
- Timestamp:
- 04/15/2023 12:09:08 PM (19 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 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; -
trunk/src/wp-includes/kses.php
r55642 r55652 1331 1331 // Loop through the whole attribute list. 1332 1332 1333 while ( strlen( $attr ) != 0 ) {1333 while ( strlen( $attr ) !== 0 ) { 1334 1334 $working = 0; // Was the last operation successful? 1335 1335 -
trunk/src/wp-includes/load.php
r55537 r55652 41 41 42 42 // Fix for IIS when running with PHP ISAPI. 43 if ( empty( $_SERVER['REQUEST_URI'] ) || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { 43 if ( empty( $_SERVER['REQUEST_URI'] ) 44 || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) 45 ) { 44 46 45 47 if ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ) { … … 72 74 73 75 // Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests. 74 if ( isset( $_SERVER['SCRIPT_FILENAME'] ) && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) == strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) ) { 76 if ( isset( $_SERVER['SCRIPT_FILENAME'] ) 77 && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) === strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) 78 ) { 75 79 $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED']; 76 80 } -
trunk/src/wp-includes/post-template.php
r55262 r55652 43 43 $title = get_the_title(); 44 44 45 if ( strlen( $title ) == 0 ) {45 if ( strlen( $title ) === 0 ) { 46 46 return; 47 47 } … … 89 89 $title = get_the_title( $parsed_args['post'] ); 90 90 91 if ( strlen( $title ) == 0 ) {91 if ( strlen( $title ) === 0 ) { 92 92 return; 93 93 }
Note: See TracChangeset
for help on using the changeset viewer.