Changeset 47122 for trunk/src/wp-includes/http.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/http.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r47088 r47122 369 369 $count = count( $capabilities ); 370 370 371 // If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array 371 // If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array. 372 372 if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) { 373 373 $capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) ); … … 418 418 $home_origin = parse_url( home_url() ); 419 419 420 // @todo preserve port?420 // @todo Preserve port? 421 421 $allowed_origins = array_unique( 422 422 array( … … 550 550 } else { 551 551 $ip = gethostbyname( $host ); 552 if ( $ip === $host ) { // Error condition for gethostbyname() 552 if ( $ip === $host ) { // Error condition for gethostbyname(). 553 553 return false; 554 554 }
Note: See TracChangeset
for help on using the changeset viewer.