]> 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 8115ff2ece40edb4251086c27ef9f9e8db6411f0..57ff7f4b93b0919828f5998e092b10efbacf9d5a 100644 (file)
@@ -10,10 +10,6 @@ class WP_Importer {
         */
        function __construct() {}
 
-       function WP_Importer() {
-               $this->__construct();
-       }
-
        /**
         * Returns array with imported permalinks from WordPress database
         *
@@ -136,9 +132,6 @@ class WP_Importer {
                                exit();
                        }
                        $blog_id = (int) $blog->blog_id;
-                       // Restore global $current_blog
-                       global $current_blog;
-                       $current_blog = $blog;
                }
 
                if ( function_exists( 'is_multisite' ) ) {
@@ -186,7 +179,7 @@ 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();
@@ -197,7 +190,7 @@ class WP_Importer {
 
                $args['headers'] = $headers;
 
-               return wp_remote_request( $url, $args );
+               return wp_safe_remote_request( $url, $args );
        }
 
        /**
@@ -216,8 +209,6 @@ class WP_Importer {
         * @return bool
         */
        function is_user_over_quota() {
-               global $current_blog;
-
                if ( function_exists( 'upload_is_user_over_quota' ) ) {
                        if ( upload_is_user_over_quota( 1 ) ) {
                                echo "Sorry, you have used your upload quota.\n";