mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Coding Standards: Use strict comparison in wp-includes/http.php.
Follow-up to [17914], [55642]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. git-svn-id: https://develop.svn.wordpress.org/trunk@55650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -372,7 +372,7 @@ function wp_http_supports( $capabilities = array(), $url = null ) {
|
||||
$count = count( $capabilities );
|
||||
|
||||
// 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 ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user