Plugin Directory

Changeset 1978430


Ignore:
Timestamp:
11/21/2018 08:22:22 PM (7 years ago)
Author:
Den Media
Message:

2.0.0.1

Location:
hiweb-migration-simple/trunk/inc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hiweb-migration-simple/trunk/inc/hiweb_migration_simple.js

    r1978423 r1978430  
    88                    console.info('reload...');
    99                    $('[data-button-reload]').show('slow');
    10                     //location.reload();
     10                    location.reload();
    1111                } else {
    1212                    alert(response.data);
  • hiweb-migration-simple/trunk/inc/hiweb_migration_simple.php

    r1978423 r1978430  
    2626                    update_option( HW_MIGRATION_SIMPLE_PREFIX . '_basedir', tools::get_base_dir() );
    2727                } elseif( self::is_trigger() && !wp_doing_ajax() && !wp_doing_cron() ) {
    28                     //TODO!
    2928                    include HW_MIGRATION_SIMPLE_DIR . '/template/frontend.php';
    30                     //hiweb_migration_simple()->do_site_migrate();
    3129                    die;
    3230                }
     
    5452            update_option( HW_MIGRATION_SIMPLE_PREFIX . '_basedir', $baseDir );
    5553            update_option( HW_MIGRATION_SIMPLE_PREFIX . '_basedir_old', $oldBaseDir );
    56             if( trim( $oldUrl ) == '' ) $oldUrl = get_option( 'siteurl' );
     54            update_option( HW_MIGRATION_SIMPLE_PREFIX . '_baseurl', tools::get_base_url() );
     55            update_option( HW_MIGRATION_SIMPLE_PREFIX . '_baseurl_old', tools::get_wp_old_base_url() );
     56            if( trim( $oldUrl ) == '' ) $oldUrl = tools::get_wp_old_base_url();
    5757            if( trim( $newUrl ) == '' ) $newUrl = tools::get_base_url();
    5858            ///
  • hiweb-migration-simple/trunk/inc/hooks.php

    r1978423 r1978430  
    6565                    }
    6666                    if( trim( $old_domain ) == '' ){
    67                         $old_domain = get_option( 'siteurl' );
     67                        $old_domain = tools::get_wp_old_base_url();
    6868                        $_POST['old_domain'] = $old_domain;
    6969                    }
  • hiweb-migration-simple/trunk/inc/tools.php

    r1978423 r1978430  
    115115
    116116        /**
     117         * Get current wp site url
     118         * @return string
     119         */
     120        static function get_wp_old_base_url(){
     121            return get_option( 'siteurl' );
     122        }
     123
     124
     125        /**
    117126         * @return string
    118127         */
Note: See TracChangeset for help on using the changeset viewer.