diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index d9cbd68f27..ccf728236a 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -898,7 +898,7 @@ function seems_utf8( $str ) { return false; // Does not match any model. } for ( $j = 0; $j < $n; $j++ ) { // n bytes matching 10bbbbbb follow ? - if ( ( ++$i == $length ) || ( ( ord( $str[ $i ] ) & 0xC0 ) != 0x80 ) ) { + if ( ( ++$i === $length ) || ( ( ord( $str[ $i ] ) & 0xC0 ) != 0x80 ) ) { return false; } } @@ -5138,7 +5138,7 @@ function wp_sprintf( $pattern, ...$args ) { $arg_index = 0; while ( $len > $start ) { // Last character: append and break. - if ( strlen( $pattern ) - 1 == $start ) { + if ( strlen( $pattern ) - 1 === $start ) { $result .= substr( $pattern, -1 ); break; } diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 95d9c65cae..c5542a7b00 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -1330,7 +1330,7 @@ function wp_kses_hair( $attr, $allowed_protocols ) { // Loop through the whole attribute list. - while ( strlen( $attr ) != 0 ) { + while ( strlen( $attr ) !== 0 ) { $working = 0; // Was the last operation successful? switch ( $mode ) { diff --git a/wp-includes/load.php b/wp-includes/load.php index 4f6c274747..4ad4bad207 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -40,7 +40,9 @@ function wp_fix_server_vars() { $_SERVER = array_merge( $default_server_values, $_SERVER ); // Fix for IIS when running with PHP ISAPI. - if ( empty( $_SERVER['REQUEST_URI'] ) || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { + if ( empty( $_SERVER['REQUEST_URI'] ) + || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) + ) { if ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ) { // IIS Mod-Rewrite. @@ -71,7 +73,9 @@ function wp_fix_server_vars() { } // Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests. - if ( isset( $_SERVER['SCRIPT_FILENAME'] ) && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) == strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) ) { + if ( isset( $_SERVER['SCRIPT_FILENAME'] ) + && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) === strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) + ) { $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED']; } diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 27f55fc7df..88c7a8c6b0 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -42,7 +42,7 @@ function get_the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctio function the_title( $before = '', $after = '', $display = true ) { $title = get_the_title(); - if ( strlen( $title ) == 0 ) { + if ( strlen( $title ) === 0 ) { return; } @@ -88,7 +88,7 @@ function the_title_attribute( $args = '' ) { $title = get_the_title( $parsed_args['post'] ); - if ( strlen( $title ) == 0 ) { + if ( strlen( $title ) === 0 ) { return; } diff --git a/wp-includes/version.php b/wp-includes/version.php index c3919e2b01..a5a4182890 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55651'; +$wp_version = '6.3-alpha-55652'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.