WordPress.org

Plugin Directory

Changeset 322932


Ignore:
Timestamp:
12/14/10 22:04:32 (3 years ago)
Author:
duck_
Message:

Time limit 0 for large imports, help reduce average memory consumption, more for 13627

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-importer/trunk/wordpress-importer.php

    r319246 r322932  
    66Author: wordpressdotorg 
    77Author URI: http://wordpress.org/ 
    8 Version: 0.3-beta3 
     8Version: 0.3-beta4 
    99License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1010*/ 
     
    8484                $this->id = (int) $_POST['import_id']; 
    8585                $file = get_attached_file( $this->id ); 
     86                set_time_limit(0); 
    8687                $this->import( $file ); 
    8788                break; 
     
    168169        wp_defer_comment_counting( false ); 
    169170 
    170         echo '<p>' . __( 'All done.' ) . ' <a href="' . admin_url() . '">' . __( 'Have fun!' ) . '</a>' . '</p>'; 
     171        echo '<p>' . __( 'All done.', 'wordpress-importer' ) . ' <a href="' . admin_url() . '">' . __( 'Have fun!', 'wordpress-importer' ) . '</a>' . '</p>'; 
     172        echo '<p>' . __( 'Remember to update the passwords and roles of imported users.', 'wordpress-importer' ) . '</p>'; 
    171173 
    172174        do_action( 'import_end' ); 
     
    299301 
    300302        foreach ( (array) $_POST['imported_authors'] as $i => $old_login ) { 
    301             $old_id = isset( $this->authors[$old_login]['author_id'] ) ? $this->authors[$old_login]['author_id'] : false; 
     303            $old_id = isset( $this->authors[$old_login]['author_id'] ) ? intval($this->authors[$old_login]['author_id']) : false; 
    302304 
    303305            if ( ! empty( $_POST['user_map'][$i] ) ) { 
     
    382384            } 
    383385        } 
     386 
     387        unset( $this->categories ); 
    384388    } 
    385389 
     
    416420            } 
    417421        } 
     422 
     423        unset( $this->tags ); 
    418424    } 
    419425 
     
    456462            } 
    457463        } 
     464 
     465        unset( $this->terms ); 
    458466    } 
    459467 
     
    628636            } 
    629637        } 
     638 
     639        unset( $this->posts ); 
    630640    } 
    631641 
Note: See TracChangeset for help on using the changeset viewer.