Version Description
Changed
- Enhanced support for old versions of revslider plugin
Download this release
Release Info
Developer | bangelov |
Plugin | All-in-One WP Migration |
Version | 7.7 |
Comparing to | |
See all releases |
Code changes from version 7.6 to 7.7
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- functions.php +76 -0
- lib/model/import/class-ai1wm-import-done.php +12 -12
- 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.7
|
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.7' );
|
39 |
|
40 |
// ===============
|
41 |
// = Plugin Name =
|
functions.php
CHANGED
@@ -1099,6 +1099,82 @@ function ai1wm_deactivate_jetpack_modules( $modules ) {
|
|
1099 |
return update_option( AI1WM_JETPACK_ACTIVE_MODULES, $current );
|
1100 |
}
|
1101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1102 |
/**
|
1103 |
* Discover plugin basename
|
1104 |
*
|
1099 |
return update_option( AI1WM_JETPACK_ACTIVE_MODULES, $current );
|
1100 |
}
|
1101 |
|
1102 |
+
/**
|
1103 |
+
* Deactivate sitewide Revolution Slider
|
1104 |
+
*
|
1105 |
+
* @param string $basename Plugin basename
|
1106 |
+
* @return boolean
|
1107 |
+
*/
|
1108 |
+
function ai1wm_deactivate_sitewide_revolution_slider( $basename ) {
|
1109 |
+
global $wp_version;
|
1110 |
+
|
1111 |
+
// Do not deactivate Revolution Slider (WordPress >= 5.2)
|
1112 |
+
if ( version_compare( $wp_version, '5.2', '>=' ) ) {
|
1113 |
+
return false;
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
// Deactivate Revolution Slider
|
1117 |
+
if ( ( $plugins = get_plugins() ) ) {
|
1118 |
+
if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) {
|
1119 |
+
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) {
|
1120 |
+
return ai1wm_deactivate_sitewide_plugins( array( $basename ) );
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
if ( version_compare( PHP_VERSION, '7.2', '>=' ) && version_compare( $version, '5.4.6', '<' ) ) {
|
1124 |
+
return ai1wm_deactivate_sitewide_plugins( array( $basename ) );
|
1125 |
+
}
|
1126 |
+
|
1127 |
+
if ( version_compare( PHP_VERSION, '7.1', '>=' ) && version_compare( $version, '5.4.1', '<' ) ) {
|
1128 |
+
return ai1wm_deactivate_sitewide_plugins( array( $basename ) );
|
1129 |
+
}
|
1130 |
+
|
1131 |
+
if ( version_compare( PHP_VERSION, '7.0', '>=' ) && version_compare( $version, '4.6.5', '<' ) ) {
|
1132 |
+
return ai1wm_deactivate_sitewide_plugins( array( $basename ) );
|
1133 |
+
}
|
1134 |
+
}
|
1135 |
+
}
|
1136 |
+
|
1137 |
+
return false;
|
1138 |
+
}
|
1139 |
+
|
1140 |
+
/**
|
1141 |
+
* Deactivate Revolution Slider
|
1142 |
+
*
|
1143 |
+
* @param string $basename Plugin basename
|
1144 |
+
* @return boolean
|
1145 |
+
*/
|
1146 |
+
function ai1wm_deactivate_revolution_slider( $basename ) {
|
1147 |
+
global $wp_version;
|
1148 |
+
|
1149 |
+
// Do not deactivate Revolution Slider (WordPress >= 5.2)
|
1150 |
+
if ( version_compare( $wp_version, '5.2', '>=' ) ) {
|
1151 |
+
return false;
|
1152 |
+
}
|
1153 |
+
|
1154 |
+
// Deactivate Revolution Slider
|
1155 |
+
if ( ( $plugins = get_plugins() ) ) {
|
1156 |
+
if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) {
|
1157 |
+
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) {
|
1158 |
+
return ai1wm_deactivate_plugins( array( $basename ) );
|
1159 |
+
}
|
1160 |
+
|
1161 |
+
if ( version_compare( PHP_VERSION, '7.2', '>=' ) && version_compare( $version, '5.4.6', '<' ) ) {
|
1162 |
+
return ai1wm_deactivate_plugins( array( $basename ) );
|
1163 |
+
}
|
1164 |
+
|
1165 |
+
if ( version_compare( PHP_VERSION, '7.1', '>=' ) && version_compare( $version, '5.4.1', '<' ) ) {
|
1166 |
+
return ai1wm_deactivate_plugins( array( $basename ) );
|
1167 |
+
}
|
1168 |
+
|
1169 |
+
if ( version_compare( PHP_VERSION, '7.0', '>=' ) && version_compare( $version, '4.6.5', '<' ) ) {
|
1170 |
+
return ai1wm_deactivate_plugins( array( $basename ) );
|
1171 |
+
}
|
1172 |
+
}
|
1173 |
+
}
|
1174 |
+
|
1175 |
+
return false;
|
1176 |
+
}
|
1177 |
+
|
1178 |
/**
|
1179 |
* Discover plugin basename
|
1180 |
*
|
lib/model/import/class-ai1wm-import-done.php
CHANGED
@@ -74,11 +74,11 @@ class Ai1wm_Import_Done {
|
|
74 |
ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ),
|
75 |
) );
|
76 |
|
|
|
|
|
|
|
77 |
// Deactivate Jetpack modules
|
78 |
-
ai1wm_deactivate_jetpack_modules( array(
|
79 |
-
'photon',
|
80 |
-
'sso',
|
81 |
-
) );
|
82 |
|
83 |
} else {
|
84 |
|
@@ -136,11 +136,11 @@ class Ai1wm_Import_Done {
|
|
136 |
ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ),
|
137 |
) );
|
138 |
|
|
|
|
|
|
|
139 |
// Deactivate Jetpack modules
|
140 |
-
ai1wm_deactivate_jetpack_modules( array(
|
141 |
-
'photon',
|
142 |
-
'sso',
|
143 |
-
) );
|
144 |
}
|
145 |
}
|
146 |
|
@@ -200,11 +200,11 @@ class Ai1wm_Import_Done {
|
|
200 |
ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ),
|
201 |
) );
|
202 |
|
|
|
|
|
|
|
203 |
// Deactivate Jetpack modules
|
204 |
-
ai1wm_deactivate_jetpack_modules( array(
|
205 |
-
'photon',
|
206 |
-
'sso',
|
207 |
-
) );
|
208 |
}
|
209 |
}
|
210 |
|
74 |
ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ),
|
75 |
) );
|
76 |
|
77 |
+
// Deactivate Revolution Slider
|
78 |
+
ai1wm_deactivate_revolution_slider( ai1wm_discover_plugin_basename( 'revslider/revslider.php' ) );
|
79 |
+
|
80 |
// Deactivate Jetpack modules
|
81 |
+
ai1wm_deactivate_jetpack_modules( array( 'photon', 'sso' ) );
|
|
|
|
|
|
|
82 |
|
83 |
} else {
|
84 |
|
136 |
ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ),
|
137 |
) );
|
138 |
|
139 |
+
// Deactivate Revolution Slider
|
140 |
+
ai1wm_deactivate_revolution_slider( ai1wm_discover_plugin_basename( 'revslider/revslider.php' ) );
|
141 |
+
|
142 |
// Deactivate Jetpack modules
|
143 |
+
ai1wm_deactivate_jetpack_modules( array( 'photon', 'sso' ) );
|
|
|
|
|
|
|
144 |
}
|
145 |
}
|
146 |
|
200 |
ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ),
|
201 |
) );
|
202 |
|
203 |
+
// Deactivate Revolution Slider
|
204 |
+
ai1wm_deactivate_revolution_slider( ai1wm_discover_plugin_basename( 'revslider/revslider.php' ) );
|
205 |
+
|
206 |
// Deactivate Jetpack modules
|
207 |
+
ai1wm_deactivate_jetpack_modules( array( 'photon', 'sso' ) );
|
|
|
|
|
|
|
208 |
}
|
209 |
}
|
210 |
|
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.2
|
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.
|
@@ -109,6 +109,11 @@ Alternatively you can download the plugin using the download button on this page
|
|
109 |
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)
|
110 |
|
111 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
112 |
= 7.6 =
|
113 |
**Added**
|
114 |
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.2.17
|
7 |
+
Stable tag: 7.7
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
109 |
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)
|
110 |
|
111 |
== Changelog ==
|
112 |
+
= 7.7 =
|
113 |
+
**Changed**
|
114 |
+
|
115 |
+
* Enhanced support for old versions of revslider plugin
|
116 |
+
|
117 |
= 7.6 =
|
118 |
**Added**
|
119 |
|