Make WordPress Core


Ignore:
Timestamp:
12/18/2007 05:28:44 AM (18 years ago)
Author:
ryan
Message:

redirect fixes from ruckus and tellyworth. fixes #5479

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r6401 r6402  
    576576        if ( ( '302' == $code || '301' == $code ) && isset( $headers['location'] ) ) {
    577577                fclose($fp);
    578                 return wp_get_http_headers( $headers['location'], $get, ++$red );
     578                return wp_get_http( $headers['location'], $file_path, ++$red );
    579579        }
    580580   
     
    606606}
    607607
    608 function wp_get_http_headers( $url ) {
    609     return wp_get_http( $url, false );
     608function wp_get_http_headers( $url, $red = 1 ) {
     609    return wp_get_http( $url, false, $red );
    610610}
    611611
Note: See TracChangeset for help on using the changeset viewer.