Changeset 10500
- Timestamp:
- 02/04/2009 05:49:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r10490 r10500 1159 1159 1160 1160 break; 1161 case 'lj-importer' :1162 check_ajax_referer( 'lj-api-import' );1163 if ( !current_user_can( 'publish_posts' ) )1164 die('-1');1165 if ( empty( $_POST['step'] ) )1166 die( '-1' );1167 1168 include( ABSPATH . 'wp-admin/import/livejournal.php' );1169 $result = $lj_api_import->{ 'step' . ( (int) $_POST['step'] ) }();1170 if ( is_wp_error( $result ) )1171 echo $result->get_error_message();1172 die;1173 break;1174 1161 default : 1175 1162 do_action( 'wp_ajax_' . $_POST['action'] );
Note: See TracChangeset
for help on using the changeset viewer.