Define WP_IMPORTING for lj-importer. see #8999

git-svn-id: https://develop.svn.wordpress.org/trunk@10580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-02-16 20:59:11 +00:00
parent 23af8f4060
commit fc84c4b94c
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )