Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (19 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/livejournal.php

    r3405 r3517  
    1919        return strtr($string, $trans_tbl);
    2020    }
    21    
     21
    2222    function greet() {
    2323        echo '<p>'.__('Howdy! This importer allows you to extract posts from LiveJournal XML export file into your blog.  Pick a LiveJournal file to upload and click Import.').'</p>';
     
    2727    function import_posts() {
    2828        global $wpdb, $current_user;
    29        
     29
    3030        set_magic_quotes_runtime(0);
    3131        $importdata = file($this->file); // Read the file into an array
     
    3636        $posts = $posts[1];
    3737        unset($importdata);
    38         echo '<ol>';       
     38        echo '<ol>';
    3939        foreach ($posts as $post) {
    4040            flush();
     
    7979            preg_match_all('|<comment>(.*?)</comment>|is', $post, $comments);
    8080            $comments = $comments[1];
    81            
     81
    8282            if ( $comments ) {
    8383                $comment_post_ID = $post_id;
     
    135135        $this->import_posts();
    136136        wp_import_cleanup($file['id']);
    137        
     137
    138138        echo '<h3>';
    139139        printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
     
    148148
    149149        $this->header();
    150        
     150
    151151        switch ($step) {
    152152            case 0 :
     
    157157                break;
    158158        }
    159        
     159
    160160        $this->footer();
    161161    }
    162162
    163163    function LJ_Import() {
    164         // Nothing. 
     164        // Nothing.
    165165    }
    166166}
Note: See TracChangeset for help on using the changeset viewer.