WordPress.org

Make WordPress Core

Ticket #41880: 41880.patch

File 41880.patch, 880 bytes (added by adnan.limdi, 2 years ago)

Improve functions descriptions.

  • class-http.php

     
    363363                        }
    364364                }
    365365
    366                 // Avoid issues where mbstring.func_overload is enabled
     366                // Avoid issues where mbstring.func_overload is enabled.
    367367                mbstring_binary_safe_encoding();
    368368
    369369                try {
    370370                        $requests_response = Requests::request( $url, $headers, $data, $type, $options );
    371371
    372                         // Convert the response into an array
     372                        // Convert the response into an array.
    373373                        $http_response = new WP_HTTP_Requests_Response( $requests_response, $r['filename'] );
    374374                        $response = $http_response->to_array();
    375375
     
    473473         * Validate redirected URLs.
    474474         *
    475475         * @since 4.7.5
     476         * @static
    476477         *
    477478         * @throws Requests_Exception On unsuccessful URL validation
    478479         * @param string $location URL to redirect to.