]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-importer.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-importer.php
index 0268e7e6ee39835349edcf2a21d768a3091818ba..57ff7f4b93b0919828f5998e092b10efbacf9d5a 100644 (file)
@@ -179,11 +179,10 @@ class WP_Importer {
         */
        function get_page( $url, $username = '', $password = '', $head = false ) {
                // Increase the timeout
-               add_filter( 'http_request_timeout', array( &$this, 'bump_request_timeout' ) );
+               add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) );
 
                $headers = array();
                $args = array();
-               $args['reject_unsafe_urls'] = true;
                if ( true === $head )
                        $args['method'] = 'HEAD';
                if ( !empty( $username ) && !empty( $password ) )
@@ -191,7 +190,7 @@ class WP_Importer {
 
                $args['headers'] = $headers;
 
-               return wp_remote_request( $url, $args );
+               return wp_safe_remote_request( $url, $args );
        }
 
        /**