From 0fc4e7d73a3986dbbb136587cd888e7598e49ad9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Mar 2022 16:24:03 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-wp-http-curl.php`. Follow-up to [17692], [25303], [29968]. See #54728. Built from https://develop.svn.wordpress.org/trunk@52966 git-svn-id: http://core.svn.wordpress.org/trunk@52555 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http-curl.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-http-curl.php b/wp-includes/class-wp-http-curl.php index 9194f2f20d..0e389c4563 100644 --- a/wp-includes/class-wp-http-curl.php +++ b/wp-includes/class-wp-http-curl.php @@ -268,9 +268,9 @@ class WP_Http_Curl { $curl_error = curl_errno( $handle ); // If an error occurred, or, no response. - if ( $curl_error || ( 0 == strlen( $body ) && empty( $processed_headers['headers'] ) ) ) { - if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error ) { - if ( ! $this->max_body_length || $this->max_body_length != $bytes_written_total ) { + if ( $curl_error || ( 0 === strlen( $body ) && empty( $processed_headers['headers'] ) ) ) { + if ( CURLE_WRITE_ERROR /* 23 */ === $curl_error ) { + if ( ! $this->max_body_length || $this->max_body_length !== $bytes_written_total ) { if ( $parsed_args['stream'] ) { curl_close( $handle ); fclose( $this->stream_handle ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 04f68e8b1e..855f86e2bb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52965'; +$wp_version = '6.0-alpha-52966'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.