Make WordPress Core


Ignore:
Timestamp:
11/11/2019 02:41:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of WP_Error.

See #48303.

File:
1 edited

Legend:

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

    r46475 r46696  
    4242 * @param string $url  URL to retrieve.
    4343 * @param array  $args Optional. Request arguments. Default empty array.
    44  * @return WP_Error|array The response or WP_Error on failure.
     44 * @return array|WP_Error The response or WP_Error on failure.
    4545 */
    4646function wp_safe_remote_request( $url, $args = array() ) {
     
    6363 * @param string $url  URL to retrieve.
    6464 * @param array  $args Optional. Request arguments. Default empty array.
    65  * @return WP_Error|array The response or WP_Error on failure.
     65 * @return array|WP_Error The response or WP_Error on failure.
    6666 */
    6767function wp_safe_remote_get( $url, $args = array() ) {
     
    8484 * @param string $url  URL to retrieve.
    8585 * @param array  $args Optional. Request arguments. Default empty array.
    86  * @return WP_Error|array The response or WP_Error on failure.
     86 * @return array|WP_Error The response or WP_Error on failure.
    8787 */
    8888function wp_safe_remote_post( $url, $args = array() ) {
     
    105105 * @param string $url  URL to retrieve.
    106106 * @param array  $args Optional. Request arguments. Default empty array.
    107  * @return WP_Error|array The response or WP_Error on failure.
     107 * @return array|WP_Error The response or WP_Error on failure.
    108108 */
    109109function wp_safe_remote_head( $url, $args = array() ) {
     
    128128 * @param string $url  URL to retrieve.
    129129 * @param array  $args Optional. Request arguments. Default empty array.
    130  * @return WP_Error|array {
     130 * @return array|WP_Error {
    131131 *     The response array or a WP_Error on failure.
    132132 *
     
    158158 * @param string $url  URL to retrieve.
    159159 * @param array  $args Optional. Request arguments. Default empty array.
    160  * @return WP_Error|array The response or WP_Error on failure.
     160 * @return array|WP_Error The response or WP_Error on failure.
    161161 */
    162162function wp_remote_get( $url, $args = array() ) {
     
    175175 * @param string $url  URL to retrieve.
    176176 * @param array  $args Optional. Request arguments. Default empty array.
    177  * @return WP_Error|array The response or WP_Error on failure.
     177 * @return array|WP_Error The response or WP_Error on failure.
    178178 */
    179179function wp_remote_post( $url, $args = array() ) {
     
    192192 * @param string $url  URL to retrieve.
    193193 * @param array  $args Optional. Request arguments. Default empty array.
    194  * @return WP_Error|array The response or WP_Error on failure.
     194 * @return array|WP_Error The response or WP_Error on failure.
    195195 */
    196196function wp_remote_head( $url, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.