Completely New LiveJournal Importer, props beaulebens, see #8999
git-svn-id: https://develop.svn.wordpress.org/trunk@10475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
962dc22c5e
commit
8ec672d58c
|
@ -1127,6 +1127,19 @@ case 'find_posts':
|
||||||
));
|
));
|
||||||
$x->send();
|
$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;
|
break;
|
||||||
default :
|
default :
|
||||||
do_action( 'wp_ajax_' . $_POST['action'] );
|
do_action( 'wp_ajax_' . $_POST['action'] );
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue