Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47088 r47122  
    369369    $count = count( $capabilities );
    370370
    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.
    372372    if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) {
    373373        $capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) );
     
    418418    $home_origin  = parse_url( home_url() );
    419419
    420     // @todo preserve port?
     420    // @todo Preserve port?
    421421    $allowed_origins = array_unique(
    422422        array(
     
    550550        } else {
    551551            $ip = gethostbyname( $host );
    552             if ( $ip === $host ) { // Error condition for gethostbyname()
     552            if ( $ip === $host ) { // Error condition for gethostbyname().
    553553                return false;
    554554            }
Note: See TracChangeset for help on using the changeset viewer.