From 49d8db4cbea0a0c0b03f54abb4b2a32829e485dd Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 18 Dec 2007 05:28:44 +0000 Subject: [PATCH] redirect fixes from ruckus and tellyworth. fixes #5479 git-svn-id: http://svn.automattic.com/wordpress/trunk@6402 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 29bffda90b..dca06c3610 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -575,7 +575,7 @@ function wp_get_http( $url, $file_path = false, $red = 1 ) { $code = $headers['response']; if ( ( '302' == $code || '301' == $code ) && isset( $headers['location'] ) ) { fclose($fp); - return wp_get_http_headers( $headers['location'], $get, ++$red ); + return wp_get_http( $headers['location'], $file_path, ++$red ); } // make a note of the final location, so the caller can tell if we were redirected or not @@ -605,8 +605,8 @@ function wp_get_http( $url, $file_path = false, $red = 1 ) { return $headers; } -function wp_get_http_headers( $url ) { - return wp_get_http( $url, false ); +function wp_get_http_headers( $url, $red = 1 ) { + return wp_get_http( $url, false, $red ); }