Changeset 9714 for trunk/wp-includes/rss.php
- Timestamp:
- 11/15/2008 05:56:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rss.php
r9699 r9714 539 539 $resp = wp_remote_request($url, array('headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT)); 540 540 if ( is_wp_error($resp) ) { 541 $error = array_shift($resp->errors); 542 541 543 $resp = new stdClass; 542 544 $resp->status = 500; 545 $resp->response_code = 500; 546 $resp->error = $error[0] . "\n"; //\n = Snoopy compatibility 543 547 return $resp; 544 548 } 545 549 $response = new stdClass; 546 550 $response->status = $resp['response']['code']; 551 $response->response_code = $resp['response']['code']; 547 552 $response->headers = $resp['headers']; 548 553 $response->results = $resp['body'];
Note: See TracChangeset
for help on using the changeset viewer.