Coding Standards: Use strict comparison in `wp-includes/http.php`.

Follow-up to [17914], [55642].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.
Built from https://develop.svn.wordpress.org/trunk@55650


git-svn-id: http://core.svn.wordpress.org/trunk@55162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-04-13 15:43:21 +00:00
parent 996fe7077e
commit 97ffc006b0
2 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ function wp_http_supports( $capabilities = array(), $url = null ) {
$count = count( $capabilities ); $count = count( $capabilities );
// If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array. // If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array.
if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) { if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) === $count ) {
$capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) ); $capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) );
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-alpha-55649'; $wp_version = '6.3-alpha-55650';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.