Changeset 13734
- Timestamp:
- 03/17/2010 04:52:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/livejournal.php
r13256 r13734 185 185 <p><?php _e( 'It looks like you attempted to import your LiveJournal posts previously and got interrupted.' ) ?></p> 186 186 <p class="submit"> 187 <input type="submit" class="button -primary" value="<?php esc_attr_e( 'Continue previous import' ) ?>" />187 <input type="submit" class="button" value="<?php esc_attr_e( 'Continue previous import' ) ?>" /> 188 188 </p> 189 189 <p class="submitbox"><a href="<?php echo esc_url($_SERVER['PHP_SELF'] . '?import=livejournal&step=-1&_wpnonce=' . wp_create_nonce( 'lj-api-import' ) . '&_wp_http_referer=' . esc_attr( $_SERVER['REQUEST_URI'] )) ?>" class="deletion submitdelete"><?php _e( 'Cancel & start a new import' ) ?></a></p> … … 224 224 225 225 <p class="submit"> 226 <input type="submit" class="button -primary" value="<?php esc_attr_e( 'Connect to LiveJournal and Import' ) ?>" />226 <input type="submit" class="button" value="<?php esc_attr_e( 'Connect to LiveJournal and Import' ) ?>" /> 227 227 </p> 228 228 … … 763 763 function step1() { 764 764 global $verified; 765 766 do_action( 'import_start' ); 767 765 768 set_time_limit( 0 ); 766 769 update_option( 'ljapi_step', 1 ); … … 822 825 <?php wp_nonce_field( 'lj-api-import' ) ?> 823 826 <input type="hidden" name="step" id="step" value="1" /> 824 <p><input type="submit" class="button -primary" value="<?php esc_attr_e( 'Import the next batch' ) ?>" /> <span id="auto-message"></span></p>827 <p><input type="submit" class="button" value="<?php esc_attr_e( 'Import the next batch' ) ?>" /> <span id="auto-message"></span></p> 825 828 </form> 826 829 <?php $this->auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> … … 836 839 // Download comments to local XML 837 840 function step2() { 841 do_action( 'import_start' ); 842 838 843 set_time_limit( 0 ); 839 844 update_option( 'ljapi_step', 2 ); … … 872 877 <?php wp_nonce_field( 'lj-api-import' ) ?> 873 878 <input type="hidden" name="step" id="step" value="2" /> 874 <p><input type="submit" class="button -primary" value="<?php esc_attr_e( 'Import the next batch' ) ?>" /> <span id="auto-message"></span></p>879 <p><input type="submit" class="button" value="<?php esc_attr_e( 'Import the next batch' ) ?>" /> <span id="auto-message"></span></p> 875 880 </form> 876 881 <?php $this->auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> … … 887 892 function step3() { 888 893 global $wpdb; 894 895 do_action( 'import_start' ); 896 889 897 set_time_limit( 0 ); 890 898 update_option( 'ljapi_step', 3 ); … … 948 956 $str .= wp_referer_field( false ); 949 957 $str .= '<input type="hidden" name="step" id="step" value="' . esc_attr($next_step) . '" />'; 950 $str .= '<p><input type="submit" class="button -primary" value="' . esc_attr( $label ) . '" /> <span id="auto-message"></span></p>';958 $str .= '<p><input type="submit" class="button" value="' . esc_attr( $label ) . '" /> <span id="auto-message"></span></p>'; 951 959 $str .= '</form>'; 952 960 … … 1001 1009 jQuery( '#<?php echo $msg ?>' ).html( str ); 1002 1010 jQuery('#ljapi-status').load(ajaxurl, {'action':'lj-importer', 1011 'import':'livejournal', 1003 1012 'step':jQuery('#step').val(), 1004 1013 '_wpnonce':'<?php echo wp_create_nonce( 'lj-api-import' ) ?>', … … 1043 1052 array( 'comment_karma' => 0, 'comment_agent' => 'WP LJ Importer', 'comment_type' => '' ), 1044 1053 array( 'comment_type' => 'livejournal' ) ); 1054 1055 do_action( 'import_end' ); 1045 1056 } 1046 1057
Note: See TracChangeset
for help on using the changeset viewer.