All-in-One WP Migration - Version 4.6

Version Description

  • Fix an issue when the plugin was getting stuck on "Done creating an empty archive"
  • Fix an issue when the plugin was getting stuck during import
Download this release

Release Info

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

Code changes from version 4.5 to 4.6

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.5
9
  * Text Domain: all-in-one-wp-migration
10
  * Domain Path: /languages
11
  * Network: True
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.6
9
  * Text Domain: all-in-one-wp-migration
10
  * Domain Path: /languages
11
  * Network: True
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.5' );
42
 
43
  // ===============
44
  // = Plugin Name =
38
  // ==================
39
  // = Plugin Version =
40
  // ==================
41
+ define( 'AI1WM_VERSION', '4.6' );
42
 
43
  // ===============
44
  // = Plugin Name =
lib/model/class-ai1wm-export-abstract.php CHANGED
@@ -407,7 +407,7 @@ abstract class Ai1wm_Export_Abstract {
407
  }
408
 
409
  // Resolve domain
410
- $url = admin_url( 'admin-ajax.php?action=ai1wm_export' );
411
  $hostname = parse_url( $url, PHP_URL_HOST );
412
  $port = parse_url( $url, PHP_URL_PORT );
413
  $ip = gethostbyname( $hostname );
@@ -428,28 +428,27 @@ abstract class Ai1wm_Export_Abstract {
428
  if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) ) {
429
  $ip = "[$ip]";
430
  }
 
431
 
432
- // Replace URL
433
- $url = preg_replace( sprintf( '/%s/', preg_quote( $hostname, '-' ) ), $ip, $url, 1 );
434
 
435
- // Set host header
436
- if ( ! empty( $port ) ) {
437
- $headers['Host'] = sprintf( '%s:%s', $hostname, $port );
438
- } else {
439
- $headers['Host'] = sprintf( '%s', $hostname );
440
- }
441
  }
442
 
443
  // HTTP request
444
  remove_all_filters( 'http_request_args' );
445
- wp_remote_post(
446
  $url,
447
  array(
448
  'timeout' => apply_filters( 'ai1wm_http_timeout', 5 ),
449
  'blocking' => false,
450
  'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
451
  'user-agent' => 'ai1wm',
452
- 'body' => $this->args,
453
  'headers' => $headers,
454
  )
455
  );
407
  }
408
 
409
  // Resolve domain
410
+ $url = admin_url( 'admin-ajax.php?action=ai1wm_export&' . http_build_query( $this->args ) );
411
  $hostname = parse_url( $url, PHP_URL_HOST );
412
  $port = parse_url( $url, PHP_URL_PORT );
413
  $ip = gethostbyname( $hostname );
428
  if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) ) {
429
  $ip = "[$ip]";
430
  }
431
+ }
432
 
433
+ // Replace URL
434
+ $url = preg_replace( sprintf( '/%s/', preg_quote( $hostname, '-' ) ), $ip, $url, 1 );
435
 
436
+ // Set host header
437
+ if ( ! empty( $port ) ) {
438
+ $headers['Host'] = sprintf( '%s:%s', $hostname, $port );
439
+ } else {
440
+ $headers['Host'] = sprintf( '%s', $hostname );
 
441
  }
442
 
443
  // HTTP request
444
  remove_all_filters( 'http_request_args' );
445
+ wp_remote_get(
446
  $url,
447
  array(
448
  'timeout' => apply_filters( 'ai1wm_http_timeout', 5 ),
449
  'blocking' => false,
450
  'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
451
  'user-agent' => 'ai1wm',
 
452
  'headers' => $headers,
453
  )
454
  );
lib/model/class-ai1wm-import-abstract.php CHANGED
@@ -396,7 +396,7 @@ abstract class Ai1wm_Import_Abstract {
396
  }
397
 
398
  // Resolve domain
399
- $url = admin_url( 'admin-ajax.php?action=ai1wm_import' );
400
  $hostname = parse_url( $url, PHP_URL_HOST );
401
  $port = parse_url( $url, PHP_URL_PORT );
402
  $ip = gethostbyname( $hostname );
@@ -417,28 +417,27 @@ abstract class Ai1wm_Import_Abstract {
417
  if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) ) {
418
  $ip = "[$ip]";
419
  }
 
420
 
421
- // Replace URL
422
- $url = preg_replace( sprintf( '/%s/', preg_quote( $hostname, '-' ) ), $ip, $url, 1 );
423
 
424
- // Set host header
425
- if ( ! empty( $port ) ) {
426
- $headers['Host'] = sprintf( '%s:%s', $hostname, $port );
427
- } else {
428
- $headers['Host'] = sprintf( '%s', $hostname );
429
- }
430
  }
431
 
432
  // HTTP request
433
  remove_all_filters( 'http_request_args' );
434
- wp_remote_post(
435
  $url,
436
  array(
437
  'timeout' => apply_filters( 'ai1wm_http_timeout', 5 ),
438
  'blocking' => false,
439
  'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
440
  'user-agent' => 'ai1wm',
441
- 'body' => $this->args,
442
  'headers' => $headers,
443
  )
444
  );
396
  }
397
 
398
  // Resolve domain
399
+ $url = admin_url( 'admin-ajax.php?action=ai1wm_import&' . http_build_query( $this->args ) );
400
  $hostname = parse_url( $url, PHP_URL_HOST );
401
  $port = parse_url( $url, PHP_URL_PORT );
402
  $ip = gethostbyname( $hostname );
417
  if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) ) {
418
  $ip = "[$ip]";
419
  }
420
+ }
421
 
422
+ // Replace URL
423
+ $url = preg_replace( sprintf( '/%s/', preg_quote( $hostname, '-' ) ), $ip, $url, 1 );
424
 
425
+ // Set host header
426
+ if ( ! empty( $port ) ) {
427
+ $headers['Host'] = sprintf( '%s:%s', $hostname, $port );
428
+ } else {
429
+ $headers['Host'] = sprintf( '%s', $hostname );
 
430
  }
431
 
432
  // HTTP request
433
  remove_all_filters( 'http_request_args' );
434
+ wp_remote_get(
435
  $url,
436
  array(
437
  'timeout' => apply_filters( 'ai1wm_http_timeout', 5 ),
438
  'blocking' => false,
439
  'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
440
  'user-agent' => 'ai1wm',
 
441
  'headers' => $headers,
442
  )
443
  );
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.5
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.
@@ -28,8 +28,8 @@ All in One WP Plugin is the first plugin to offer true mobile experience on Word
28
  = Support for MySQL, PDO, MySQLi =
29
  * No matter what php mysql driver your webserver ships with, we support it.
30
 
31
- = Support WordPress v3.3 up to v4.2 =
32
- * We tested every WordPress version from `3.3` up to `4.2`.
33
 
34
  = Migrate WordPress to most popular cloud services using our completely new extensions =
35
  * [Dropbox](https://servmask.com/products/dropbox-extension)
@@ -57,6 +57,10 @@ All in One WP Plugin is the first plugin to offer true mobile experience on Word
57
  3. Plugin Menu
58
 
59
  == Changelog ==
 
 
 
 
60
  = 4.3 =
61
  * Add URL extension support
62
  * Filter "mu-plugins" directory if "Do not export plugins (files)" is checked
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.6
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.
28
  = Support for MySQL, PDO, MySQLi =
29
  * No matter what php mysql driver your webserver ships with, we support it.
30
 
31
+ = Support WordPress v3.3 up to v4.3 =
32
+ * We tested every WordPress version from `3.3` up to `4.3`.
33
 
34
  = Migrate WordPress to most popular cloud services using our completely new extensions =
35
  * [Dropbox](https://servmask.com/products/dropbox-extension)
57
  3. Plugin Menu
58
 
59
  == Changelog ==
60
+ = 4.6 =
61
+ * Fix an issue when the plugin was getting stuck on "Done creating an empty archive"
62
+ * Fix an issue when the plugin was getting stuck during import
63
+
64
  = 4.3 =
65
  * Add URL extension support
66
  * Filter "mu-plugins" directory if "Do not export plugins (files)" is checked