mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Docs: In various @return tags, list the expected type first, instead of false.
Follow-up to [46696]. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1004,8 +1004,8 @@ class WP_Http {
|
||||
* @param string $url The URL which was requested.
|
||||
* @param array $args The arguments which were used to make the request.
|
||||
* @param array $response The response of the HTTP request.
|
||||
* @return false|WP_Error|array False if no redirect is present, a WP_Error object if there's an error, or an HTTP
|
||||
* API response array if the redirect is successfully followed.
|
||||
* @return array|false|WP_Error An HTTP API response array if the redirect is successfully followed,
|
||||
* false if no redirect is present, or a WP_Error object if there's an error.
|
||||
*/
|
||||
public static function handle_redirects( $url, $args, $response ) {
|
||||
// If no redirects are present, or, redirects were not requested, perform no action.
|
||||
|
||||
Reference in New Issue
Block a user