From 4161f3bc32873fc2f1a79619b150ba3571460c42 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 16 Feb 2009 20:59:11 +0000 Subject: [PATCH] Define WP_IMPORTING for lj-importer. see #8999 git-svn-id: http://svn.automattic.com/wordpress/trunk@10580 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index b8d14b37ca..8f1f768844 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -1179,7 +1179,7 @@ case 'lj-importer' : die('-1'); if ( empty( $_POST['step'] ) ) die( '-1' ); - + define('WP_IMPORTING', true); include( ABSPATH . 'wp-admin/import/livejournal.php' ); $result = $lj_api_import->{ 'step' . ( (int) $_POST['step'] ) }(); if ( is_wp_error( $result ) )