Revert the revert per Matt. see #8999
git-svn-id: https://develop.svn.wordpress.org/trunk@10501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d20aa7befb
commit
7d6bf009cd
@ -1157,6 +1157,19 @@ case 'find_posts':
|
||||
));
|
||||
$x->send();
|
||||
|
||||
break;
|
||||
case 'lj-importer' :
|
||||
check_ajax_referer( 'lj-api-import' );
|
||||
if ( !current_user_can( 'publish_posts' ) )
|
||||
die('-1');
|
||||
if ( empty( $_POST['step'] ) )
|
||||
die( '-1' );
|
||||
|
||||
include( ABSPATH . 'wp-admin/import/livejournal.php' );
|
||||
$result = $lj_api_import->{ 'step' . ( (int) $_POST['step'] ) }();
|
||||
if ( is_wp_error( $result ) )
|
||||
echo $result->get_error_message();
|
||||
die;
|
||||
break;
|
||||
default :
|
||||
do_action( 'wp_ajax_' . $_POST['action'] );
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user