Make WordPress Core


Ignore:
Timestamp:
11/15/2008 05:56:44 PM (16 years ago)
Author:
ryan
Message:

Notice fixes. Props DD32. see #7509

File:
1 edited

Legend:

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

    r9699 r9714  
    539539    $resp = wp_remote_request($url, array('headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT));
    540540    if ( is_wp_error($resp) ) {
     541        $error = array_shift($resp->errors);
     542
    541543        $resp = new stdClass;
    542544        $resp->status = 500;
     545        $resp->response_code = 500;
     546        $resp->error = $error[0] . "\n"; //\n = Snoopy compatibility
    543547        return $resp;
    544548    }
    545549    $response = new stdClass;
    546550    $response->status = $resp['response']['code'];
     551    $response->response_code = $resp['response']['code'];
    547552    $response->headers = $resp['headers'];
    548553    $response->results = $resp['body'];
Note: See TracChangeset for help on using the changeset viewer.