Completely New LiveJournal Importer, props beaulebens, see #8999

git-svn-id: http://svn.automattic.com/wordpress/trunk@10475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-01-31 18:41:35 +00:00
parent 22e8d0e0e5
commit fc8345977f
2 changed files with 1129 additions and 131 deletions

View File

@ -1127,6 +1127,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