diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php index 981fab65da..dece821620 100644 --- a/wp-admin/import/livejournal.php +++ b/wp-admin/import/livejournal.php @@ -184,7 +184,7 @@ class LJ_API_Import {

- +

@@ -223,7 +223,7 @@ class LJ_API_Import {

WARNING: This can take a really long time if you have a lot of entries in your LiveJournal, or a lot of comments. Ideally, you should only start this process if you can leave your computer alone while it finishes the import." ) ?>

- +

NOTE: If the import process is interrupted for any reason, come back to this page and it will continue from where it stopped automatically.' ) ?>

@@ -762,6 +762,9 @@ class LJ_API_Import { // Check form inputs and start importing posts function step1() { global $verified; + + do_action( 'import_start' ); + set_time_limit( 0 ); update_option( 'ljapi_step', 1 ); if ( !$this->ixr ) $this->ixr = new IXR_Client( $this->ixr_url, false, 80, 30 ); @@ -821,7 +824,7 @@ class LJ_API_Import {
-

+

auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> username = get_option( 'ljapi_username' ); @@ -871,7 +876,7 @@ class LJ_API_Import {

approximately %d' ), get_option( 'ljapi_comment_batch' ), $batch ) ?>

-

+

auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> '; - $str .= '

'; + $str .= '

'; $str .= ''; return $str; @@ -1000,6 +1008,7 @@ class LJ_API_Import { str = ' '; jQuery( '#' ).html( str ); jQuery('#ljapi-status').load(ajaxurl, {'action':'lj-importer', + 'import':'livejournal', 'step':jQuery('#step').val(), '_wpnonce':'', '_wp_http_referer':''}); @@ -1042,6 +1051,8 @@ class LJ_API_Import { $wpdb->update( $wpdb->comments, array( 'comment_karma' => 0, 'comment_agent' => 'WP LJ Importer', 'comment_type' => '' ), array( 'comment_type' => 'livejournal' ) ); + + do_action( 'import_end' ); } function LJ_API_Import() {