All-in-One WP Migration - Version 4.14

Version Description

Download this release

Release Info

Developer bangelov
Plugin Icon 128x128 All-in-One WP Migration
Version 4.14
Comparing to
See all releases

Code changes from version 4.13 to 4.14

all-in-one-wp-migration.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Migration tool for all your blog data. Import or Export your blog content with a single click.
6
  * Author: ServMask
7
  * Author URI: https://servmask.com/
8
- * Version: 4.13
9
  * Text Domain: all-in-one-wp-migration
10
  * Domain Path: /languages
11
  * Network: True
@@ -37,6 +37,11 @@
37
  @set_time_limit( 0 );
38
  @ini_set( 'max_input_time', '-1' );
39
 
 
 
 
 
 
40
  // Plugin Basename
41
  define( 'AI1WM_PLUGIN_BASENAME', basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
42
 
@@ -44,13 +49,13 @@ define( 'AI1WM_PLUGIN_BASENAME', basename( dirname( __FILE__ ) ) . '/' . basena
44
  define( 'AI1WM_PATH', dirname( __FILE__ ) );
45
 
46
  // Plugin Url
47
- define( 'AI1WM_URL', plugins_url( '', __FILE__ ) );
48
 
49
  // Plugin Storage Url
50
- define( 'AI1WM_STORAGE_URL', plugins_url( 'storage', __FILE__ ) );
51
 
52
  // Plugin Backups Url
53
- define( 'AI1WM_BACKUPS_URL', content_url( 'ai1wm-backups', __FILE__ ) );
54
 
55
  // Themes Absolute Path
56
  define( 'AI1WM_THEMES_PATH', get_theme_root() );
5
  * Description: Migration tool for all your blog data. Import or Export your blog content with a single click.
6
  * Author: ServMask
7
  * Author URI: https://servmask.com/
8
+ * Version: 4.14
9
  * Text Domain: all-in-one-wp-migration
10
  * Domain Path: /languages
11
  * Network: True
37
  @set_time_limit( 0 );
38
  @ini_set( 'max_input_time', '-1' );
39
 
40
+ // Check SSL Mode
41
+ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && ( $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) ) {
42
+ $_SERVER['HTTPS'] = 'on';
43
+ }
44
+
45
  // Plugin Basename
46
  define( 'AI1WM_PLUGIN_BASENAME', basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
47
 
49
  define( 'AI1WM_PATH', dirname( __FILE__ ) );
50
 
51
  // Plugin Url
52
+ define( 'AI1WM_URL', plugins_url( '', AI1WM_PLUGIN_BASENAME ) );
53
 
54
  // Plugin Storage Url
55
+ define( 'AI1WM_STORAGE_URL', plugins_url( 'storage', AI1WM_PLUGIN_BASENAME ) );
56
 
57
  // Plugin Backups Url
58
+ define( 'AI1WM_BACKUPS_URL', content_url( 'ai1wm-backups', AI1WM_PLUGIN_BASENAME ) );
59
 
60
  // Themes Absolute Path
61
  define( 'AI1WM_THEMES_PATH', get_theme_root() );
constants.php CHANGED
@@ -38,7 +38,7 @@ if ( function_exists( 'gethostname' ) && in_array( gethostname(), $local ) ) {
38
  // ==================
39
  // = Plugin Version =
40
  // ==================
41
- define( 'AI1WM_VERSION', '4.13' );
42
 
43
  // ===============
44
  // = Plugin Name =
38
  // ==================
39
  // = Plugin Version =
40
  // ==================
41
+ define( 'AI1WM_VERSION', '4.14' );
42
 
43
  // ===============
44
  // = Plugin Name =
lib/model/service/class-ai1wm-service-database.php CHANGED
@@ -159,6 +159,12 @@ class Ai1wm_Service_Database implements Ai1wm_Service_Interface {
159
  // Get secret key
160
  $secret_key = get_site_option( AI1WM_SECRET_KEY, false, false );
161
 
 
 
 
 
 
 
162
  // Get database client
163
  $client = MysqlDumpFactory::makeMysqlDump( DB_HOST, DB_USER, DB_PASSWORD, DB_NAME );
164
 
@@ -259,6 +265,12 @@ class Ai1wm_Service_Database implements Ai1wm_Service_Interface {
259
 
260
  // Set the new secret key value
261
  update_site_option( AI1WM_SECRET_KEY, $secret_key );
 
 
 
 
 
 
262
  }
263
 
264
  /**
159
  // Get secret key
160
  $secret_key = get_site_option( AI1WM_SECRET_KEY, false, false );
161
 
162
+ // Get URL IP
163
+ $url_ip = get_site_option( AI1WM_URL_IP, false, false );
164
+
165
+ // Get URL transport
166
+ $url_transport = get_site_option( AI1WM_URL_TRANSPORT, false, false );
167
+
168
  // Get database client
169
  $client = MysqlDumpFactory::makeMysqlDump( DB_HOST, DB_USER, DB_PASSWORD, DB_NAME );
170
 
265
 
266
  // Set the new secret key value
267
  update_site_option( AI1WM_SECRET_KEY, $secret_key );
268
+
269
+ // Set the new URL IP
270
+ update_site_option( AI1WM_URL_IP, $url_ip );
271
+
272
+ // Set the new URL transport
273
+ update_site_option( AI1WM_URL_TRANSPORT, $url_transport );
274
  }
275
 
276
  /**
lib/model/service/class-ai1wm-service-package.php CHANGED
@@ -99,13 +99,13 @@ class Ai1wm_Service_Package implements Ai1wm_Service_Interface {
99
  // Get Site URL
100
  $site_url = site_url();
101
  if ( isset( $options['siteurl'] ) ) {
102
- $site_url = rtrim( $options['siteurl'], '/' );
103
  }
104
 
105
  // Get Home URL
106
  $home_url = home_url();
107
  if ( isset( $options['home'] ) ) {
108
- $home_url = rtrim( $options['home'], '/' );
109
  }
110
 
111
  // Default configuration
99
  // Get Site URL
100
  $site_url = site_url();
101
  if ( isset( $options['siteurl'] ) ) {
102
+ $site_url = untrailingslashit( $options['siteurl'] );
103
  }
104
 
105
  // Get Home URL
106
  $home_url = home_url();
107
  if ( isset( $options['home'] ) ) {
108
+ $home_url = untrailingslashit( $options['home'] );
109
  }
110
 
111
  // Default configuration
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: yani.iliev, bangelov, pimjitsawang
3
  Tags: db migration, migration, wordpress migration, db backup, db restore, website backup, website restore, website migration, website deploy, wordpress deploy, db backup, database export, database serialization, database find replace
4
  Requires at least: 3.3
5
  Tested up to: 4.3
6
- Stable tag: 4.13
7
  License: GPLv2 or later
8
 
9
  All-in-One WP Migration is the only tool that you will ever need to migrate a WordPress site.
3
  Tags: db migration, migration, wordpress migration, db backup, db restore, website backup, website restore, website migration, website deploy, wordpress deploy, db backup, database export, database serialization, database find replace
4
  Requires at least: 3.3
5
  Tested up to: 4.3
6
+ Stable tag: 4.14
7
  License: GPLv2 or later
8
 
9
  All-in-One WP Migration is the only tool that you will ever need to migrate a WordPress site.