Version Description
Added
- Improved support for revslider plugin
- Improved support for WordPress.com migrations
Download this release
Release Info
| Developer | bangelov |
| Plugin | |
| Version | 7.23 |
| Comparing to | |
| See all releases | |
Code changes from version 7.22 to 7.23
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- functions.php +0 -16
- lib/controller/class-ai1wm-main-controller.php +20 -4
- readme.txt +7 -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.23
|
| 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.23' );
|
| 39 |
|
| 40 |
// ===============
|
| 41 |
// = Plugin Name =
|
functions.php
CHANGED
|
@@ -1197,14 +1197,6 @@ function ai1wm_deactivate_jetpack_modules( $modules ) {
|
|
| 1197 |
* @return boolean
|
| 1198 |
*/
|
| 1199 |
function ai1wm_deactivate_sitewide_revolution_slider( $basename ) {
|
| 1200 |
-
global $wp_version;
|
| 1201 |
-
|
| 1202 |
-
// Do not deactivate Revolution Slider (WordPress >= 5.2)
|
| 1203 |
-
if ( version_compare( $wp_version, '5.2', '>=' ) ) {
|
| 1204 |
-
return false;
|
| 1205 |
-
}
|
| 1206 |
-
|
| 1207 |
-
// Deactivate Revolution Slider
|
| 1208 |
if ( ( $plugins = get_plugins() ) ) {
|
| 1209 |
if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) {
|
| 1210 |
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) {
|
|
@@ -1235,14 +1227,6 @@ function ai1wm_deactivate_sitewide_revolution_slider( $basename ) {
|
|
| 1235 |
* @return boolean
|
| 1236 |
*/
|
| 1237 |
function ai1wm_deactivate_revolution_slider( $basename ) {
|
| 1238 |
-
global $wp_version;
|
| 1239 |
-
|
| 1240 |
-
// Do not deactivate Revolution Slider (WordPress >= 5.2)
|
| 1241 |
-
if ( version_compare( $wp_version, '5.2', '>=' ) ) {
|
| 1242 |
-
return false;
|
| 1243 |
-
}
|
| 1244 |
-
|
| 1245 |
-
// Deactivate Revolution Slider
|
| 1246 |
if ( ( $plugins = get_plugins() ) ) {
|
| 1247 |
if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) {
|
| 1248 |
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) {
|
| 1197 |
* @return boolean
|
| 1198 |
*/
|
| 1199 |
function ai1wm_deactivate_sitewide_revolution_slider( $basename ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1200 |
if ( ( $plugins = get_plugins() ) ) {
|
| 1201 |
if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) {
|
| 1202 |
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) {
|
| 1227 |
* @return boolean
|
| 1228 |
*/
|
| 1229 |
function ai1wm_deactivate_revolution_slider( $basename ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1230 |
if ( ( $plugins = get_plugins() ) ) {
|
| 1231 |
if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) {
|
| 1232 |
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) {
|
lib/controller/class-ai1wm-main-controller.php
CHANGED
|
@@ -78,6 +78,9 @@ class Ai1wm_Main_Controller {
|
|
| 78 |
// Router
|
| 79 |
add_action( 'admin_init', array( $this, 'router' ) );
|
| 80 |
|
|
|
|
|
|
|
|
|
|
| 81 |
// Setup backups folder
|
| 82 |
add_action( 'admin_init', array( $this, 'setup_backups_folder' ) );
|
| 83 |
|
|
@@ -824,10 +827,10 @@ class Ai1wm_Main_Controller {
|
|
| 824 |
'ai1wm_import',
|
| 825 |
array(
|
| 826 |
'ajax' => array(
|
| 827 |
-
'url' => wp_make_link_relative( admin_url( 'admin-ajax.php?action=ai1wm_import' ) ),
|
| 828 |
),
|
| 829 |
'status' => array(
|
| 830 |
-
'url' => wp_make_link_relative( add_query_arg( array( 'secret_key' => get_option( AI1WM_SECRET_KEY ) ), admin_url( 'admin-ajax.php?action=ai1wm_status' ) ) ),
|
| 831 |
),
|
| 832 |
'secret_key' => get_option( AI1WM_SECRET_KEY ),
|
| 833 |
)
|
|
@@ -975,10 +978,10 @@ class Ai1wm_Main_Controller {
|
|
| 975 |
'ai1wm_import',
|
| 976 |
array(
|
| 977 |
'ajax' => array(
|
| 978 |
-
'url' => wp_make_link_relative( admin_url( 'admin-ajax.php?action=ai1wm_import' ) ),
|
| 979 |
),
|
| 980 |
'status' => array(
|
| 981 |
-
'url' => wp_make_link_relative( add_query_arg( array( 'secret_key' => get_option( AI1WM_SECRET_KEY ) ), admin_url( 'admin-ajax.php?action=ai1wm_status' ) ) ),
|
| 982 |
),
|
| 983 |
'secret_key' => get_option( AI1WM_SECRET_KEY ),
|
| 984 |
)
|
|
@@ -1190,6 +1193,19 @@ class Ai1wm_Main_Controller {
|
|
| 1190 |
}
|
| 1191 |
}
|
| 1192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1193 |
/**
|
| 1194 |
* Add custom cron schedules
|
| 1195 |
*
|
| 78 |
// Router
|
| 79 |
add_action( 'admin_init', array( $this, 'router' ) );
|
| 80 |
|
| 81 |
+
// Enable WP importing
|
| 82 |
+
add_action( 'admin_init', array( $this, 'wp_importing' ), 5 );
|
| 83 |
+
|
| 84 |
// Setup backups folder
|
| 85 |
add_action( 'admin_init', array( $this, 'setup_backups_folder' ) );
|
| 86 |
|
| 827 |
'ai1wm_import',
|
| 828 |
array(
|
| 829 |
'ajax' => array(
|
| 830 |
+
'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_import' ) ) ),
|
| 831 |
),
|
| 832 |
'status' => array(
|
| 833 |
+
'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1, 'secret_key' => get_option( AI1WM_SECRET_KEY ) ), admin_url( 'admin-ajax.php?action=ai1wm_status' ) ) ),
|
| 834 |
),
|
| 835 |
'secret_key' => get_option( AI1WM_SECRET_KEY ),
|
| 836 |
)
|
| 978 |
'ai1wm_import',
|
| 979 |
array(
|
| 980 |
'ajax' => array(
|
| 981 |
+
'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_import' ) ) ),
|
| 982 |
),
|
| 983 |
'status' => array(
|
| 984 |
+
'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1, 'secret_key' => get_option( AI1WM_SECRET_KEY ) ), admin_url( 'admin-ajax.php?action=ai1wm_status' ) ) ),
|
| 985 |
),
|
| 986 |
'secret_key' => get_option( AI1WM_SECRET_KEY ),
|
| 987 |
)
|
| 1193 |
}
|
| 1194 |
}
|
| 1195 |
|
| 1196 |
+
/**
|
| 1197 |
+
* Enable WP importing
|
| 1198 |
+
*
|
| 1199 |
+
* @return void
|
| 1200 |
+
*/
|
| 1201 |
+
public function wp_importing() {
|
| 1202 |
+
if ( isset( $_GET['ai1wm_import'] ) ) {
|
| 1203 |
+
if ( ! defined( 'WP_IMPORTING' ) ) {
|
| 1204 |
+
define( 'WP_IMPORTING', true );
|
| 1205 |
+
}
|
| 1206 |
+
}
|
| 1207 |
+
}
|
| 1208 |
+
|
| 1209 |
/**
|
| 1210 |
* Add custom cron schedules
|
| 1211 |
*
|
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.4
|
| 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.
|
|
@@ -108,6 +108,12 @@ 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.22 =
|
| 112 |
**Added**
|
| 113 |
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 5.4
|
| 6 |
Requires PHP: 5.2.17
|
| 7 |
+
Stable tag: 7.23
|
| 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.23 =
|
| 112 |
+
**Added**
|
| 113 |
+
|
| 114 |
+
* Improved support for revslider plugin
|
| 115 |
+
* Improved support for WordPress.com migrations
|
| 116 |
+
|
| 117 |
= 7.22 =
|
| 118 |
**Added**
|
| 119 |
|
