Make WordPress Core


Ignore:
Timestamp:
05/14/2011 07:45:07 PM (13 years ago)
Author:
nacin
Message:

Use wp_remote_retrieve_* helper functions instead of the raw HTTP response array. props aaroncampbell, fixes #17416.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-feed.php

    r17771 r17928  
    8181                $this->success = false;
    8282            } else {
    83                 $this->headers = $res['headers'];
    84                 $this->body = $res['body'];
    85                 $this->status_code = $res['response']['code'];
     83                $this->headers = wp_remote_retrieve_headers( $res );
     84                $this->body = wp_remote_retrieve_body( $res );
     85                $this->status_code = wp_remote_retrieve_response_code( $res );
    8686            }
    8787        } else {
Note: See TracChangeset for help on using the changeset viewer.