WordPress.org

Make WordPress Core

Ticket #13960: remove-livejournal-import-vestige.13960.diff

File remove-livejournal-import-vestige.13960.diff, 741 bytes (added by filosofo, 4 years ago)
  • wp-admin/admin-ajax.php

     
    13681368        $x->send(); 
    13691369 
    13701370        break; 
    1371 case 'lj-importer' : 
    1372         check_ajax_referer( 'lj-api-import' ); 
    1373         if ( !current_user_can( 'publish_posts' ) ) 
    1374                 die('-1'); 
    1375         if ( empty( $_POST['step'] ) ) 
    1376                 die( '-1' ); 
    1377         define('WP_IMPORTING', true); 
    1378         include( ABSPATH . 'wp-admin/import/livejournal.php' ); 
    1379         $result = $lj_api_import->{ 'step' . ( (int) $_POST['step'] ) }(); 
    1380         if ( is_wp_error( $result ) ) 
    1381                 echo $result->get_error_message(); 
    1382         die; 
    1383         break; 
    13841371case 'widgets-order' : 
    13851372        check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' ); 
    13861373