Changeset 3405

Show
Ignore:
Timestamp:
01/05/06 05:35:09 (3 years ago)
Author:
ryan
Message:

LJ importer tweaks.

Files:

Legend:

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

    r3375 r3405  
    6868            } else { 
    6969                printf(__('Importing post <i>%s</i>...'), stripslashes($post_title)); 
    70                 $post = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); 
    71                 $post_id = wp_insert_post($post); 
     70                $postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); 
     71                $post_id = wp_insert_post($postdata); 
    7272                if (!$post_id) { 
    7373                    _e("Couldn't get post ID"); 
     
    114114                } 
    115115            } 
    116             if ( $num_comments ) 
     116            if ( $num_comments ) { 
     117                echo ' '; 
    117118                printf(__('(%s comments)'), $num_comments); 
    118  
     119            } 
    119120            echo '</li>'; 
    120121            flush();