Changeset 6402

Show
Ignore:
Timestamp:
12/18/07 05:28:44 (1 year ago)
Author:
ryan
Message:

redirect fixes from ruckus and tellyworth. fixes #5479

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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