Version Description
Changed
- When importing or restoring across various PHP versions, the notice has been improved
Download this release
Release Info
Developer | bangelov |
Plugin | All-in-One WP Migration |
Version | 7.55 |
Comparing to | |
See all releases |
Code changes from version 7.54 to 7.55
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- lib/model/import/class-ai1wm-import-confirm.php +40 -5
- readme.txt +6 -1
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.
|
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.55
|
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.
|
39 |
|
40 |
// ===============
|
41 |
// = Plugin Name =
|
35 |
// ==================
|
36 |
// = Plugin Version =
|
37 |
// ==================
|
38 |
+
define( 'AI1WM_VERSION', '7.55' );
|
39 |
|
40 |
// ===============
|
41 |
// = Plugin Name =
|
lib/model/import/class-ai1wm-import-confirm.php
CHANGED
@@ -60,19 +60,54 @@ class Ai1wm_Import_Confirm {
|
|
60 |
|
61 |
// Check compatibility of PHP versions
|
62 |
if ( isset( $package['PHP']['Version'] ) ) {
|
63 |
-
|
64 |
-
|
65 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
'Your backup is from a PHP 5 but the site that you are importing to is PHP 7. ' .
|
67 |
'This could cause the import to fail. Technical details: https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/',
|
68 |
AI1WM_PLUGIN_NAME
|
69 |
);
|
70 |
-
|
71 |
-
$messages[] = __(
|
72 |
'<i class="ai1wm-import-info">Your backup is from a PHP 5 but the site that you are importing to is PHP 7. ' .
|
73 |
'This could cause the import to fail. <a href="https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/" target="_blank">Technical details</a></i>',
|
74 |
AI1WM_PLUGIN_NAME
|
75 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
}
|
78 |
}
|
60 |
|
61 |
// Check compatibility of PHP versions
|
62 |
if ( isset( $package['PHP']['Version'] ) ) {
|
63 |
+
switch ( true ) {
|
64 |
+
case ( version_compare( $package['PHP']['Version'], '7.0.0', '<' ) && version_compare( PHP_VERSION, '8.0.0', '>=' ) ):
|
65 |
+
$php_version_message_cli = __(
|
66 |
+
'Your backup is from a PHP 5 but the site that you are importing to is PHP 8. ' .
|
67 |
+
'This could cause the import to fail. Technical details: https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/',
|
68 |
+
AI1WM_PLUGIN_NAME
|
69 |
+
);
|
70 |
+
$php_version_message = __(
|
71 |
+
'<i class="ai1wm-import-info">Your backup is from a PHP 5 but the site that you are importing to is PHP 8. ' .
|
72 |
+
'This could cause the import to fail. <a href="https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/" target="_blank">Technical details</a></i>',
|
73 |
+
AI1WM_PLUGIN_NAME
|
74 |
+
);
|
75 |
+
break;
|
76 |
+
|
77 |
+
case ( version_compare( $package['PHP']['Version'], '8.0.0', '<' ) && version_compare( PHP_VERSION, '8.0.0', '>=' ) ):
|
78 |
+
$php_version_message_cli = __(
|
79 |
+
'Your backup is from a PHP 7 but the site that you are importing to is PHP 8. ' .
|
80 |
+
'This could cause the import to fail. Technical details: https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/',
|
81 |
+
AI1WM_PLUGIN_NAME
|
82 |
+
);
|
83 |
+
$php_version_message = __(
|
84 |
+
'<i class="ai1wm-import-info">Your backup is from a PHP 7 but the site that you are importing to is PHP 8. ' .
|
85 |
+
'This could cause the import to fail. <a href="https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/" target="_blank">Technical details</a></i>',
|
86 |
+
AI1WM_PLUGIN_NAME
|
87 |
+
);
|
88 |
+
break;
|
89 |
+
|
90 |
+
case ( version_compare( $package['PHP']['Version'], '7.0.0', '<' ) && version_compare( PHP_VERSION, '7.0.0', '>=' ) ):
|
91 |
+
$php_version_message_cli = __(
|
92 |
'Your backup is from a PHP 5 but the site that you are importing to is PHP 7. ' .
|
93 |
'This could cause the import to fail. Technical details: https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/',
|
94 |
AI1WM_PLUGIN_NAME
|
95 |
);
|
96 |
+
$php_version_message = __(
|
|
|
97 |
'<i class="ai1wm-import-info">Your backup is from a PHP 5 but the site that you are importing to is PHP 7. ' .
|
98 |
'This could cause the import to fail. <a href="https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/" target="_blank">Technical details</a></i>',
|
99 |
AI1WM_PLUGIN_NAME
|
100 |
);
|
101 |
+
break;
|
102 |
+
|
103 |
+
default:
|
104 |
+
}
|
105 |
+
|
106 |
+
if ( isset( $php_version_message_cli, $php_version_message ) ) {
|
107 |
+
if ( defined( 'WP_CLI' ) ) {
|
108 |
+
$messages[] = $php_version_message_cli;
|
109 |
+
} else {
|
110 |
+
$messages[] = $php_version_message;
|
111 |
}
|
112 |
}
|
113 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: move, transfer, copy, migrate, backup, clone, restore, db migration, wordp
|
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.2.17
|
7 |
-
Stable tag: 7.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
@@ -89,6 +89,11 @@ All-in-One WP Migration is in full compliance with General Data Protection Regul
|
|
89 |
See our [GDPR Compliant Privacy Policy here](https://www.iubenda.com/privacy-policy/946881).
|
90 |
|
91 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
92 |
= 7.54 =
|
93 |
**Added**
|
94 |
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.2.17
|
7 |
+
Stable tag: 7.55
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
89 |
See our [GDPR Compliant Privacy Policy here](https://www.iubenda.com/privacy-policy/946881).
|
90 |
|
91 |
== Changelog ==
|
92 |
+
= 7.55 =
|
93 |
+
**Changed**
|
94 |
+
|
95 |
+
* When importing or restoring across various PHP versions, the notice has been improved
|
96 |
+
|
97 |
= 7.54 =
|
98 |
**Added**
|
99 |
|