Changeset 3793 for trunk/wp-includes/functions.php
- Timestamp:
- 05/26/2006 05:25:48 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r3791 r3793 965 965 } 966 966 967 $code = preg_replace('/.*?(\d{3}).*/i', '$1', $response);968 969 $headers['status_code'] = $code;970 971 if ( '302' == $code || '301' == $code )972 return wp_get_http_headers( $url, ++$red );973 974 967 preg_match('/.*([0-9]{3}).*/', $response, $return); 975 968 $headers['response'] = $return[1]; // HTTP response code eg 204, 200, 404 969 970 $code = $headers['response']; 971 if ( ('302' == $code || '301' == $code) && isset($headers['location']) ) 972 return wp_get_http_headers( $headers['location'], ++$red ); 973 976 974 return $headers; 977 975 }
Note: See TracChangeset
for help on using the changeset viewer.