Make WordPress Core


Ignore:
Timestamp:
01/05/2006 05:35:09 AM (19 years ago)
Author:
ryan
Message:

LJ importer tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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();
Note: See TracChangeset for help on using the changeset viewer.