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-admin/includes/schema.php

    r17831 r17928  
    763763        if ( is_wp_error( $page ) )
    764764            $errstr = $page->get_error_message();
    765         elseif ( 200 == $page['response']['code'] )
     765        elseif ( 200 == wp_remote_retrieve_response_code( $page ) )
    766766                $vhost_ok = true;
    767767
Note: See TracChangeset for help on using the changeset viewer.