WordPress.org

Make WordPress Core

Ticket #8620: 8620.docblocks.patch

File 8620.docblocks.patch, 2.4 KB (added by hakre, 9 years ago)

Docblocks Update against Trunk

  • wp-includes/http.php

     
    19741974 * @since 2.7.0
    19751975 *
    19761976 * @param array $response HTTP response.
    1977  * @return array The headers of the response. Empty array if incorrect parameter given.
     1977 * @return array The headers of the response. Empty array if incorrect parameter (e.g. a WP_Error) given.
    19781978 */
    19791979function wp_remote_retrieve_headers(&$response) {
    19801980        if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
     
    19901990 *
    19911991 * @param array $response
    19921992 * @param string $header Header name to retrieve value from.
    1993  * @return string The header value. Empty string on if incorrect parameter given, or if the header doesnt exist.
     1993 * @return string The header value. Empty string on if incorrect parameter given (e.g. a WP_Error), or if the header doesnt exist.
    19941994 */
    19951995function wp_remote_retrieve_header(&$response, $header) {
    19961996        if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
     
    20102010 * @since 2.7.0
    20112011 *
    20122012 * @param array $response HTTP response.
    2013  * @return string the response code. Empty string on incorrect parameter given.
     2013 * @return string the response code. Empty string on incorrect parameter (e.g. a WP_Error) given.
    20142014 */
    20152015function wp_remote_retrieve_response_code(&$response) {
    20162016        if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
     
    20272027 * @since 2.7.0
    20282028 *
    20292029 * @param array $response HTTP response.
    2030  * @return string The response message. Empty string on incorrect parameter given.
     2030 * @return string The response message. Empty string on incorrect parameter (e.g. a WP_Error) given.
    20312031 */
    20322032function wp_remote_retrieve_response_message(&$response) {
    20332033        if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
     
    20422042 * @since 2.7.0
    20432043 *
    20442044 * @param array $response HTTP response.
    2045  * @return string The body of the response. Empty string if no body or incorrect parameter given.
     2045 * @return string The body of the response. Empty string if no body or incorrect parameter (e.g. a WP_Error)  given.
    20462046 */
    20472047function wp_remote_retrieve_body(&$response) {
    20482048        if ( is_wp_error($response) || ! isset($response['body']) )