Make WordPress Core

Changeset 55650


Ignore:
Timestamp:
04/13/2023 03:41:18 PM (17 months ago)
Author:
SergeyBiryukov
Message:

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

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

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r54997 r55650  
    373373
    374374    // If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array.
    375     if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) {
     375    if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) === $count ) {
    376376        $capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) );
    377377    }
Note: See TracChangeset for help on using the changeset viewer.