Changeset 4495 for trunk/wp-includes/functions.php
- Timestamp:
- 11/19/2006 07:56:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r4483 r4495 13 13 if( 'U' == $dateformatstring ) 14 14 return $i; 15 15 16 16 if ( -1 == $i || false == $i ) 17 17 $i = 0; … … 463 463 464 464 if ( $red > 5 ) 465 465 return false; 466 466 467 467 $parts = parse_url( $url ); … … 492 492 $headers['response'] = $return[1]; // HTTP response code eg 204, 200, 404 493 493 494 495 496 494 $code = $headers['response']; 495 if ( ('302' == $code || '301' == $code) && isset($headers['location']) ) 496 return wp_get_http_headers( $headers['location'], ++$red ); 497 497 498 498 return $headers; … … 802 802 803 803 function bool_from_yn($yn) { 804 805 804 if ($yn == 'Y') return 1; 805 return 0; 806 806 } 807 807 … … 958 958 } 959 959 960 960 $uploads = array('path' => $dir, 'url' => $url, 'error' => false); 961 961 return apply_filters('upload_dir', $uploads); 962 962 }
Note: See TracChangeset
for help on using the changeset viewer.