All-in-One WP Migration - Version 7.31

Version Description

Added

  • Better support for URL replacement
Download this release

Release Info

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

Code changes from version 7.30 to 7.31

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: 7.30
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: 7.31
9
  * Text Domain: all-in-one-wp-migration
10
  * Domain Path: /languages
11
  * Network: True
constants.php CHANGED
@@ -35,7 +35,7 @@ define( 'AI1WM_DEBUG', false );
35
  // ==================
36
  // = Plugin Version =
37
  // ==================
38
- define( 'AI1WM_VERSION', '7.30' );
39
 
40
  // ===============
41
  // = Plugin Name =
35
  // ==================
36
  // = Plugin Version =
37
  // ==================
38
+ define( 'AI1WM_VERSION', '7.31' );
39
 
40
  // ===============
41
  // = Plugin Name =
lib/model/class-ai1wm-extensions.php CHANGED
@@ -214,7 +214,7 @@ class Ai1wm_Extensions {
214
  'about' => AI1WMME_PLUGIN_ABOUT,
215
  'basename' => AI1WMME_PLUGIN_BASENAME,
216
  'version' => AI1WMME_VERSION,
217
- 'requires' => '3.99',
218
  'short' => AI1WMME_PLUGIN_SHORT,
219
  );
220
  }
214
  'about' => AI1WMME_PLUGIN_ABOUT,
215
  'basename' => AI1WMME_PLUGIN_BASENAME,
216
  'version' => AI1WMME_VERSION,
217
+ 'requires' => '4.0',
218
  'short' => AI1WMME_PLUGIN_SHORT,
219
  );
220
  }
lib/model/import/class-ai1wm-import-database.php CHANGED
@@ -275,49 +275,25 @@ class Ai1wm_Import_Database {
275
  }
276
  }
277
 
278
- // Add plain Site URL (with trailing slash)
279
- if ( ! in_array( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
280
- $old_replace_values[] = ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] );
281
- $new_replace_values[] = ai1wm_url_scheme( trailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] );
282
- }
283
-
284
- // Add URL encoded Site URL (with trailing slash)
285
- if ( ! in_array( urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
286
- $old_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
287
- $new_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) );
288
- }
289
-
290
- // Add URL raw encoded Site URL (with trailing slash)
291
- if ( ! in_array( rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
292
- $old_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
293
- $new_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) );
294
- }
295
-
296
- // Add JSON escaped Site URL (with trailing slash)
297
- if ( ! in_array( addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
298
- $old_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' );
299
- $new_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ), '/' );
300
- }
301
-
302
- // Add plain Site URL (no trailing slash)
303
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
304
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
305
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] );
306
  }
307
 
308
- // Add URL encoded Site URL (no trailing slash)
309
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
310
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
311
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) );
312
  }
313
 
314
- // Add URL raw encoded Site URL (no trailing slash)
315
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
316
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
317
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) );
318
  }
319
 
320
- // Add JSON escaped Site URL (no trailing slash)
321
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
322
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
323
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ), '/' );
@@ -425,49 +401,25 @@ class Ai1wm_Import_Database {
425
  }
426
  }
427
 
428
- // Add plain Home URL (with trailing slash)
429
- if ( ! in_array( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
430
- $old_replace_values[] = ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] );
431
- $new_replace_values[] = ai1wm_url_scheme( trailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] );
432
- }
433
-
434
- // Add URL encoded Home URL (with trailing slash)
435
- if ( ! in_array( urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
436
- $old_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
437
- $new_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) );
438
- }
439
-
440
- // Add URL raw encoded Home URL (with trailing slash)
441
- if ( ! in_array( rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
442
- $old_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
443
- $new_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) );
444
- }
445
-
446
- // Add JSON escaped Home URL (with trailing slash)
447
- if ( ! in_array( addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
448
- $old_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' );
449
- $new_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ), '/' );
450
- }
451
-
452
- // Add plain Home URL (no trailing slash)
453
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
454
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
455
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] );
456
  }
457
 
458
- // Add URL encoded Home URL (no trailing slash)
459
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
460
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
461
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) );
462
  }
463
 
464
- // Add URL raw encoded Home URL (no trailing slash)
465
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
466
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
467
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) );
468
  }
469
 
470
- // Add JSON escaped Home URL (no trailing slash)
471
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
472
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
473
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ), '/' );
@@ -645,49 +597,25 @@ class Ai1wm_Import_Database {
645
  // Replace Site URL scheme
646
  for ( $i = 0; $i < count( $old_schemes ); $i++ ) {
647
 
648
- // Add plain Site URL (with trailing slash)
649
- if ( ! in_array( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
650
- $old_replace_values[] = ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] );
651
- $new_replace_values[] = ai1wm_url_scheme( trailingslashit( site_url() ), $new_schemes[ $i ] );
652
- }
653
-
654
- // Add URL encoded Site URL (with trailing slash)
655
- if ( ! in_array( urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
656
- $old_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
657
- $new_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( site_url() ), $new_schemes[ $i ] ) );
658
- }
659
-
660
- // Add URL raw encoded Site URL (with trailing slash)
661
- if ( ! in_array( rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
662
- $old_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
663
- $new_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( site_url() ), $new_schemes[ $i ] ) );
664
- }
665
-
666
- // Add JSON escaped Site URL (with trailing slash)
667
- if ( ! in_array( addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
668
- $old_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' );
669
- $new_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( site_url() ), $new_schemes[ $i ] ), '/' );
670
- }
671
-
672
- // Add plain Site URL (no trailing slash)
673
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
674
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
675
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] );
676
  }
677
 
678
- // Add URL encoded Site URL (no trailing slash)
679
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
680
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
681
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ) );
682
  }
683
 
684
- // Add URL raw encoded Site URL (no trailing slash)
685
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
686
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
687
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ) );
688
  }
689
 
690
- // Add JSON escaped Site URL (no trailing slash)
691
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
692
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
693
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ), '/' );
@@ -767,49 +695,25 @@ class Ai1wm_Import_Database {
767
  // Replace Home URL scheme
768
  for ( $i = 0; $i < count( $old_schemes ); $i++ ) {
769
 
770
- // Add plain Home URL (with trailing slash)
771
- if ( ! in_array( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
772
- $old_replace_values[] = ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] );
773
- $new_replace_values[] = ai1wm_url_scheme( trailingslashit( home_url() ), $new_schemes[ $i ] );
774
- }
775
-
776
- // Add URL encoded Home URL (with trailing slash)
777
- if ( ! in_array( urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
778
- $old_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
779
- $new_replace_values[] = urlencode( ai1wm_url_scheme( trailingslashit( home_url() ), $new_schemes[ $i ] ) );
780
- }
781
-
782
- // Add URL raw encoded Home URL (with trailing slash)
783
- if ( ! in_array( rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
784
- $old_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ) );
785
- $new_replace_values[] = rawurlencode( ai1wm_url_scheme( trailingslashit( home_url() ), $new_schemes[ $i ] ) );
786
- }
787
-
788
- // Add JSON escaped Home URL (with trailing slash)
789
- if ( ! in_array( addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
790
- $old_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( $url ), $old_schemes[ $i ] ), '/' );
791
- $new_replace_values[] = addcslashes( ai1wm_url_scheme( trailingslashit( home_url() ), $new_schemes[ $i ] ), '/' );
792
- }
793
-
794
- // Add plain Home URL (no trailing slash)
795
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
796
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
797
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] );
798
  }
799
 
800
- // Add URL encoded Home URL (no trailing slash)
801
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
802
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
803
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ) );
804
  }
805
 
806
- // Add URL raw encoded Home URL (no trailing slash)
807
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
808
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
809
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ) );
810
  }
811
 
812
- // Add JSON escaped Home URL (no trailing slash)
813
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
814
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
815
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ), '/' );
275
  }
276
  }
277
 
278
+ // Add plain Site URL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
280
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
281
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] );
282
  }
283
 
284
+ // Add URL encoded Site URL
285
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
286
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
287
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) );
288
  }
289
 
290
+ // Add URL raw encoded Site URL
291
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
292
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
293
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) );
294
  }
295
 
296
+ // Add JSON escaped Site URL
297
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
298
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
299
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ), '/' );
401
  }
402
  }
403
 
404
+ // Add plain Home URL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
406
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
407
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] );
408
  }
409
 
410
+ // Add URL encoded Home URL
411
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
412
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
413
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) );
414
  }
415
 
416
+ // Add URL raw encoded Home URL
417
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
418
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
419
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) );
420
  }
421
 
422
+ // Add JSON escaped Home URL
423
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
424
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
425
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ), '/' );
597
  // Replace Site URL scheme
598
  for ( $i = 0; $i < count( $old_schemes ); $i++ ) {
599
 
600
+ // Add plain Site URL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
601
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
602
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
603
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] );
604
  }
605
 
606
+ // Add URL encoded Site URL
607
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
608
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
609
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ) );
610
  }
611
 
612
+ // Add URL raw encoded Site URL
613
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
614
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
615
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ) );
616
  }
617
 
618
+ // Add JSON escaped Site URL
619
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
620
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
621
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ), '/' );
695
  // Replace Home URL scheme
696
  for ( $i = 0; $i < count( $old_schemes ); $i++ ) {
697
 
698
+ // Add plain Home URL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
699
  if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) {
700
  $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] );
701
  $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] );
702
  }
703
 
704
+ // Add URL encoded Home URL
705
  if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
706
  $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
707
  $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ) );
708
  }
709
 
710
+ // Add URL raw encoded Home URL
711
  if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) {
712
  $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) );
713
  $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ) );
714
  }
715
 
716
+ // Add JSON escaped Home URL
717
  if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) {
718
  $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' );
719
  $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ), '/' );
lib/vendor/servmask/archiver/class-ai1wm-compressor.php CHANGED
@@ -67,8 +67,8 @@ class Ai1wm_Compressor extends Ai1wm_Archiver {
67
  // Start time
68
  $start = microtime( true );
69
 
70
- // Open the file for reading in binary mode
71
- if ( ( $file_handle = @fopen( $file_name, 'rb' ) ) !== false ) {
72
  $file_bytes = 0;
73
 
74
  // Get header block
67
  // Start time
68
  $start = microtime( true );
69
 
70
+ // Open the file for reading in binary mode (fopen may return null for quarantined files)
71
+ if ( ( $file_handle = @fopen( $file_name, 'rb' ) ) ) {
72
  $file_bytes = 0;
73
 
74
  // Get header block
lib/vendor/servmask/archiver/class-ai1wm-extractor.php CHANGED
@@ -448,8 +448,8 @@ class Ai1wm_Extractor extends Ai1wm_Archiver {
448
  // Set file size
449
  $file_size -= $file_offset;
450
 
451
- // Should the extract overwrite the file if it exists?
452
- if ( ( $file_handle = @fopen( $file_name, ( $file_offset === 0 ? 'wb' : 'ab' ) ) ) !== false ) {
453
  $file_bytes = 0;
454
 
455
  // Is the filesize more than 0 bytes?
448
  // Set file size
449
  $file_size -= $file_offset;
450
 
451
+ // Should the extract overwrite the file if it exists? (fopen may return null for quarantined files)
452
+ if ( ( $file_handle = @fopen( $file_name, ( $file_offset === 0 ? 'wb' : 'ab' ) ) ) ) {
453
  $file_bytes = 0;
454
 
455
  // Is the filesize more than 0 bytes?
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: yani.iliev, bangelov, pimjitsawang
3
  Tags: move, transfer, copy, migrate, backup, clone, restore, db migration, wordpress migration, website migration, database export, database import, apoyo, sauvegarde, di riserva, バックアップ
4
  Requires at least: 3.3
5
- Tested up to: 5.5
6
  Requires PHP: 5.2.17
7
- Stable tag: 7.30
8
  License: GPLv2 or later
9
 
10
  Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
@@ -108,6 +108,11 @@ Alternatively you can download the plugin using the download button on this page
108
  All-in-One WP Migration **asks for your consent** to collect **requester's email address** when filling plugin's contact form. [GDPR Compliant Privacy Policy](https://www.iubenda.com/privacy-policy/946881)
109
 
110
  == Changelog ==
 
 
 
 
 
111
  = 7.30 =
112
  **Added**
113
 
2
  Contributors: yani.iliev, bangelov, pimjitsawang
3
  Tags: move, transfer, copy, migrate, backup, clone, restore, db migration, wordpress migration, website migration, database export, database import, apoyo, sauvegarde, di riserva, バックアップ
4
  Requires at least: 3.3
5
+ Tested up to: 5.6
6
  Requires PHP: 5.2.17
7
+ Stable tag: 7.31
8
  License: GPLv2 or later
9
 
10
  Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
108
  All-in-One WP Migration **asks for your consent** to collect **requester's email address** when filling plugin's contact form. [GDPR Compliant Privacy Policy](https://www.iubenda.com/privacy-policy/946881)
109
 
110
  == Changelog ==
111
+ = 7.31 =
112
+ **Added**
113
+
114
+ * Better support for URL replacement
115
+
116
  = 7.30 =
117
  **Added**
118