WordPress.org

Make WordPress Core

Changeset 13734


Ignore:
Timestamp:
03/17/10 16:52:44 (4 years ago)
Author:
ryan
Message:

LJ importer tweaks. Props briancolinger. fixes #12620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/livejournal.php

    r13256 r13734  
    185185            <p><?php _e( 'It looks like you attempted to import your LiveJournal posts previously and got interrupted.' ) ?></p> 
    186186            <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' ) ?>" /> 
    188188            </p> 
    189189            <p class="submitbox"><a href="<?php echo esc_url($_SERVER['PHP_SELF'] . '?import=livejournal&amp;step=-1&amp;_wpnonce=' . wp_create_nonce( 'lj-api-import' ) . '&amp;_wp_http_referer=' . esc_attr( $_SERVER['REQUEST_URI'] )) ?>" class="deletion submitdelete"><?php _e( 'Cancel &amp; start a new import' ) ?></a></p> 
     
    224224 
    225225            <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' ) ?>" /> 
    227227            </p> 
    228228 
     
    763763    function step1() { 
    764764        global $verified; 
     765 
     766        do_action( 'import_start' ); 
     767 
    765768        set_time_limit( 0 ); 
    766769        update_option( 'ljapi_step', 1 ); 
     
    822825            <?php wp_nonce_field( 'lj-api-import' ) ?> 
    823826            <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> 
    825828            </form> 
    826829            <?php $this->auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> 
     
    836839    // Download comments to local XML 
    837840    function step2() { 
     841        do_action( 'import_start' ); 
     842 
    838843        set_time_limit( 0 ); 
    839844        update_option( 'ljapi_step', 2 ); 
     
    872877            <?php wp_nonce_field( 'lj-api-import' ) ?> 
    873878            <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> 
    875880            </form> 
    876881            <?php $this->auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> 
     
    887892    function step3() { 
    888893        global $wpdb; 
     894 
     895        do_action( 'import_start' ); 
     896 
    889897        set_time_limit( 0 ); 
    890898        update_option( 'ljapi_step', 3 ); 
     
    948956        $str .= wp_referer_field( false ); 
    949957        $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>'; 
    951959        $str .= '</form>'; 
    952960 
     
    10011009                        jQuery( '#<?php echo $msg ?>' ).html( str ); 
    10021010                        jQuery('#ljapi-status').load(ajaxurl, {'action':'lj-importer', 
     1011                                                                'import':'livejournal', 
    10031012                                                                'step':jQuery('#step').val(), 
    10041013                                                                '_wpnonce':'<?php echo wp_create_nonce( 'lj-api-import' ) ?>', 
     
    10431052                        array( 'comment_karma' => 0, 'comment_agent' => 'WP LJ Importer', 'comment_type' => '' ), 
    10441053                        array( 'comment_type' => 'livejournal' ) ); 
     1054 
     1055        do_action( 'import_end' ); 
    10451056    } 
    10461057 
Note: See TracChangeset for help on using the changeset viewer.