]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-importer.php
Wordpress 3.1.1
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-importer.php
index 5a7f0e47a7e8d858768ef5db5c7bbe17d261660d..8115ff2ece40edb4251086c27ef9f9e8db6411f0 100644 (file)
@@ -130,7 +130,8 @@ class WP_Importer {
                        }
                        if ( empty( $parsed['path'] ) )
                                $parsed['path'] = '/';
-                       if ( !$blog = get_blog_info( $parsed['host'], $parsed['path'] ) ) {
+                       $blog = get_blog_details( array( 'domain' => $parsed['host'], 'path' => $parsed['path'] ) );
+                       if ( !$blog ) {
                                fwrite( STDERR, "Error: Could not find blog\n" );
                                exit();
                        }
@@ -215,7 +216,7 @@ class WP_Importer {
         * @return bool
         */
        function is_user_over_quota() {
-               global $current_user, $current_blog;
+               global $current_blog;
 
                if ( function_exists( 'upload_is_user_over_quota' ) ) {
                        if ( upload_is_user_over_quota( 1 ) ) {