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:
parent
23af8f4060
commit
fc84c4b94c
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue