Version Description
Added
- Deactivate Jetpack SSO module on import
- Deactivate Invisible reCaptcha plugin on import
Download this release
Release Info
| Developer | bangelov |
| Plugin | |
| Version | 6.64 |
| Comparing to | |
| See all releases | |
Code changes from version 6.63 to 6.64
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- functions.php +21 -11
- lib/model/class-ai1wm-extensions.php +1 -1
- lib/model/import/class-ai1wm-import-confirm.php +23 -19
- lib/model/import/class-ai1wm-import-done.php +41 -16
- readme.txt +8 -2
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: 6.
|
| 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: 6.64
|
| 9 |
* Text Domain: all-in-one-wp-migration
|
| 10 |
* Domain Path: /languages
|
| 11 |
* Network: True
|
constants.php
CHANGED
|
@@ -31,7 +31,7 @@ define( 'AI1WM_DEBUG', false );
|
|
| 31 |
// ==================
|
| 32 |
// = Plugin Version =
|
| 33 |
// ==================
|
| 34 |
-
define( 'AI1WM_VERSION', '6.
|
| 35 |
|
| 36 |
// ===============
|
| 37 |
// = Plugin Name =
|
| 31 |
// ==================
|
| 32 |
// = Plugin Version =
|
| 33 |
// ==================
|
| 34 |
+
define( 'AI1WM_VERSION', '6.64' );
|
| 35 |
|
| 36 |
// ===============
|
| 37 |
// = Plugin Name =
|
functions.php
CHANGED
|
@@ -777,6 +777,27 @@ function ai1wm_deactivate_plugins( $plugins ) {
|
|
| 777 |
return update_option( AI1WM_ACTIVE_PLUGINS, $current );
|
| 778 |
}
|
| 779 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 780 |
/**
|
| 781 |
* Flush WP options cache
|
| 782 |
*
|
|
@@ -1058,17 +1079,6 @@ function ai1wm_fseek( $file_handle, Math_BigInteger $offset ) {
|
|
| 1058 |
}
|
| 1059 |
}
|
| 1060 |
|
| 1061 |
-
/**
|
| 1062 |
-
* Deactivate Jetpack Photon module
|
| 1063 |
-
*
|
| 1064 |
-
* @return mixed
|
| 1065 |
-
*/
|
| 1066 |
-
function ai1wm_deactivate_jetpack_photon_module() {
|
| 1067 |
-
if ( ( $jetpack = get_option( AI1WM_JETPACK_ACTIVE_MODULES, array() ) ) ) {
|
| 1068 |
-
return update_option( AI1WM_JETPACK_ACTIVE_MODULES, array_values( array_diff( $jetpack, array( 'photon' ) ) ) );
|
| 1069 |
-
}
|
| 1070 |
-
}
|
| 1071 |
-
|
| 1072 |
/**
|
| 1073 |
* Verify secret key
|
| 1074 |
*
|
| 777 |
return update_option( AI1WM_ACTIVE_PLUGINS, $current );
|
| 778 |
}
|
| 779 |
|
| 780 |
+
/**
|
| 781 |
+
* Deactivate Jetpack modules
|
| 782 |
+
*
|
| 783 |
+
* @param array $modules List of modules
|
| 784 |
+
* @return boolean
|
| 785 |
+
*/
|
| 786 |
+
function ai1wm_deactivate_jetpack_modules( $modules ) {
|
| 787 |
+
$current = get_option( AI1WM_JETPACK_ACTIVE_MODULES, array() );
|
| 788 |
+
|
| 789 |
+
// Remove modules
|
| 790 |
+
foreach ( $modules as $module ) {
|
| 791 |
+
if ( ( $key = array_search( $module, $current ) ) !== false ) {
|
| 792 |
+
unset( $current[ $key ] );
|
| 793 |
+
}
|
| 794 |
+
}
|
| 795 |
+
|
| 796 |
+
sort( $current );
|
| 797 |
+
|
| 798 |
+
return update_option( AI1WM_JETPACK_ACTIVE_MODULES, $current );
|
| 799 |
+
}
|
| 800 |
+
|
| 801 |
/**
|
| 802 |
* Flush WP options cache
|
| 803 |
*
|
| 1079 |
}
|
| 1080 |
}
|
| 1081 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1082 |
/**
|
| 1083 |
* Verify secret key
|
| 1084 |
*
|
lib/model/class-ai1wm-extensions.php
CHANGED
|
@@ -76,7 +76,7 @@ class Ai1wm_Extensions {
|
|
| 76 |
'about' => AI1WMME_PLUGIN_ABOUT,
|
| 77 |
'basename' => AI1WMME_PLUGIN_BASENAME,
|
| 78 |
'version' => AI1WMME_VERSION,
|
| 79 |
-
'requires' => '3.
|
| 80 |
'short' => AI1WMME_PLUGIN_SHORT,
|
| 81 |
);
|
| 82 |
}
|
| 76 |
'about' => AI1WMME_PLUGIN_ABOUT,
|
| 77 |
'basename' => AI1WMME_PLUGIN_BASENAME,
|
| 78 |
'version' => AI1WMME_VERSION,
|
| 79 |
+
'requires' => '3.48',
|
| 80 |
'short' => AI1WMME_PLUGIN_SHORT,
|
| 81 |
);
|
| 82 |
}
|
lib/model/import/class-ai1wm-import-confirm.php
CHANGED
|
@@ -26,34 +26,38 @@
|
|
| 26 |
class Ai1wm_Import_Confirm {
|
| 27 |
|
| 28 |
public static function execute( $params ) {
|
|
|
|
|
|
|
|
|
|
| 29 |
$handle = ai1wm_open( ai1wm_package_path( $params ), 'r' );
|
| 30 |
|
| 31 |
// Parse package.json file
|
| 32 |
-
$
|
| 33 |
-
$
|
| 34 |
|
| 35 |
// Close handle
|
| 36 |
ai1wm_close( $handle );
|
| 37 |
|
| 38 |
-
//
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
) )
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
) );
|
| 55 |
}
|
| 56 |
|
|
|
|
|
|
|
| 57 |
exit;
|
| 58 |
}
|
| 59 |
}
|
| 26 |
class Ai1wm_Import_Confirm {
|
| 27 |
|
| 28 |
public static function execute( $params ) {
|
| 29 |
+
$messages = array();
|
| 30 |
+
|
| 31 |
+
// Read package.json file
|
| 32 |
$handle = ai1wm_open( ai1wm_package_path( $params ), 'r' );
|
| 33 |
|
| 34 |
// Parse package.json file
|
| 35 |
+
$package = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) );
|
| 36 |
+
$package = json_decode( $package, true );
|
| 37 |
|
| 38 |
// Close handle
|
| 39 |
ai1wm_close( $handle );
|
| 40 |
|
| 41 |
+
// Set message
|
| 42 |
+
$messages[] = __(
|
| 43 |
+
'The import process will overwrite your website including the database, media, plugins, and themes. ' .
|
| 44 |
+
'Please ensure that you have a backup of your data before proceeding to the next step.',
|
| 45 |
+
AI1WM_PLUGIN_NAME
|
| 46 |
+
);
|
| 47 |
+
|
| 48 |
+
// Check compatibility of PHP versions
|
| 49 |
+
if ( isset( $package['PHP']['Version'] ) ) {
|
| 50 |
+
if ( version_compare( $package['PHP']['Version'], '7.0.0', '<' ) && version_compare( PHP_VERSION, '7.0.0', '>=' ) ) {
|
| 51 |
+
$messages[] = __(
|
| 52 |
+
'<i class="ai1wm-import-info">Your backup is from a PHP 5 but the site that you are importing to is PHP 7. ' .
|
| 53 |
+
'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>',
|
| 54 |
+
AI1WM_PLUGIN_NAME
|
| 55 |
+
);
|
| 56 |
+
}
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
+
// Set progress
|
| 60 |
+
Ai1wm_Status::confirm( implode( null, $messages ) );
|
| 61 |
exit;
|
| 62 |
}
|
| 63 |
}
|
lib/model/import/class-ai1wm-import-done.php
CHANGED
|
@@ -39,12 +39,12 @@ class Ai1wm_Import_Done {
|
|
| 39 |
// Close handle
|
| 40 |
ai1wm_close( $handle );
|
| 41 |
|
| 42 |
-
// Activate
|
| 43 |
if ( isset( $multisite['Plugins'] ) && ( $plugins = $multisite['Plugins'] ) ) {
|
| 44 |
ai1wm_activate_plugins( $plugins );
|
| 45 |
}
|
| 46 |
|
| 47 |
-
// Deactivate
|
| 48 |
if ( ! is_ssl() ) {
|
| 49 |
ai1wm_deactivate_plugins( array(
|
| 50 |
'really-simple-ssl/rlrsssl-really-simple-ssl.php',
|
|
@@ -53,10 +53,19 @@ class Ai1wm_Import_Done {
|
|
| 53 |
) );
|
| 54 |
}
|
| 55 |
|
| 56 |
-
// Deactivate
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
} else {
|
|
|
|
| 60 |
// Check package.json file
|
| 61 |
if ( true === is_file( ai1wm_package_path( $params ) ) ) {
|
| 62 |
|
|
@@ -70,22 +79,22 @@ class Ai1wm_Import_Done {
|
|
| 70 |
// Close handle
|
| 71 |
ai1wm_close( $handle );
|
| 72 |
|
| 73 |
-
// Activate plugins
|
| 74 |
if ( isset( $package['Plugins'] ) && ( $plugins = $package['Plugins'] ) ) {
|
| 75 |
ai1wm_activate_plugins( $plugins );
|
| 76 |
}
|
| 77 |
|
| 78 |
-
// Activate template
|
| 79 |
if ( isset( $package['Template'] ) && ( $template = $package['Template'] ) ) {
|
| 80 |
ai1wm_activate_template( $template );
|
| 81 |
}
|
| 82 |
|
| 83 |
-
// Activate stylesheet
|
| 84 |
if ( isset( $package['Stylesheet'] ) && ( $stylesheet = $package['Stylesheet'] ) ) {
|
| 85 |
ai1wm_activate_stylesheet( $stylesheet );
|
| 86 |
}
|
| 87 |
|
| 88 |
-
// Deactivate
|
| 89 |
if ( ! is_ssl() ) {
|
| 90 |
ai1wm_deactivate_plugins( array(
|
| 91 |
'really-simple-ssl/rlrsssl-really-simple-ssl.php',
|
|
@@ -94,8 +103,16 @@ class Ai1wm_Import_Done {
|
|
| 94 |
) );
|
| 95 |
}
|
| 96 |
|
| 97 |
-
// Deactivate
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
}
|
| 101 |
|
|
@@ -114,22 +131,22 @@ class Ai1wm_Import_Done {
|
|
| 114 |
// Loop over blogs
|
| 115 |
foreach ( $blogs as $blog ) {
|
| 116 |
|
| 117 |
-
// Activate plugins
|
| 118 |
if ( isset( $blog['New']['Plugins'] ) && ( $plugins = $blog['New']['Plugins'] ) ) {
|
| 119 |
ai1wm_activate_plugins( $plugins );
|
| 120 |
}
|
| 121 |
|
| 122 |
-
// Activate template
|
| 123 |
if ( isset( $blog['New']['Template'] ) && ( $template = $blog['New']['Template'] ) ) {
|
| 124 |
ai1wm_activate_template( $template );
|
| 125 |
}
|
| 126 |
|
| 127 |
-
// Activate stylesheet
|
| 128 |
if ( isset( $blog['New']['Stylesheet'] ) && ( $stylesheet = $blog['New']['Stylesheet'] ) ) {
|
| 129 |
ai1wm_activate_stylesheet( $stylesheet );
|
| 130 |
}
|
| 131 |
|
| 132 |
-
// Deactivate
|
| 133 |
if ( ! is_ssl() ) {
|
| 134 |
ai1wm_deactivate_plugins( array(
|
| 135 |
'really-simple-ssl/rlrsssl-really-simple-ssl.php',
|
|
@@ -138,8 +155,16 @@ class Ai1wm_Import_Done {
|
|
| 138 |
) );
|
| 139 |
}
|
| 140 |
|
| 141 |
-
// Deactivate
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
}
|
| 144 |
}
|
| 145 |
|
| 39 |
// Close handle
|
| 40 |
ai1wm_close( $handle );
|
| 41 |
|
| 42 |
+
// Activate WordPress plugins
|
| 43 |
if ( isset( $multisite['Plugins'] ) && ( $plugins = $multisite['Plugins'] ) ) {
|
| 44 |
ai1wm_activate_plugins( $plugins );
|
| 45 |
}
|
| 46 |
|
| 47 |
+
// Deactivate WordPress SSL plugins
|
| 48 |
if ( ! is_ssl() ) {
|
| 49 |
ai1wm_deactivate_plugins( array(
|
| 50 |
'really-simple-ssl/rlrsssl-really-simple-ssl.php',
|
| 53 |
) );
|
| 54 |
}
|
| 55 |
|
| 56 |
+
// Deactivate WordPress plugins
|
| 57 |
+
ai1wm_deactivate_plugins( array(
|
| 58 |
+
'invisible-recaptcha/invisible-recaptcha.php',
|
| 59 |
+
) );
|
| 60 |
+
|
| 61 |
+
// Deactivate Jetpack modules
|
| 62 |
+
ai1wm_deactivate_jetpack_modules( array(
|
| 63 |
+
'photon',
|
| 64 |
+
'sso',
|
| 65 |
+
) );
|
| 66 |
|
| 67 |
} else {
|
| 68 |
+
|
| 69 |
// Check package.json file
|
| 70 |
if ( true === is_file( ai1wm_package_path( $params ) ) ) {
|
| 71 |
|
| 79 |
// Close handle
|
| 80 |
ai1wm_close( $handle );
|
| 81 |
|
| 82 |
+
// Activate WordPress plugins
|
| 83 |
if ( isset( $package['Plugins'] ) && ( $plugins = $package['Plugins'] ) ) {
|
| 84 |
ai1wm_activate_plugins( $plugins );
|
| 85 |
}
|
| 86 |
|
| 87 |
+
// Activate WordPress template
|
| 88 |
if ( isset( $package['Template'] ) && ( $template = $package['Template'] ) ) {
|
| 89 |
ai1wm_activate_template( $template );
|
| 90 |
}
|
| 91 |
|
| 92 |
+
// Activate WordPress stylesheet
|
| 93 |
if ( isset( $package['Stylesheet'] ) && ( $stylesheet = $package['Stylesheet'] ) ) {
|
| 94 |
ai1wm_activate_stylesheet( $stylesheet );
|
| 95 |
}
|
| 96 |
|
| 97 |
+
// Deactivate WordPress SSL plugins
|
| 98 |
if ( ! is_ssl() ) {
|
| 99 |
ai1wm_deactivate_plugins( array(
|
| 100 |
'really-simple-ssl/rlrsssl-really-simple-ssl.php',
|
| 103 |
) );
|
| 104 |
}
|
| 105 |
|
| 106 |
+
// Deactivate WordPress plugins
|
| 107 |
+
ai1wm_deactivate_plugins( array(
|
| 108 |
+
'invisible-recaptcha/invisible-recaptcha.php',
|
| 109 |
+
) );
|
| 110 |
+
|
| 111 |
+
// Deactivate Jetpack modules
|
| 112 |
+
ai1wm_deactivate_jetpack_modules( array(
|
| 113 |
+
'photon',
|
| 114 |
+
'sso',
|
| 115 |
+
) );
|
| 116 |
}
|
| 117 |
}
|
| 118 |
|
| 131 |
// Loop over blogs
|
| 132 |
foreach ( $blogs as $blog ) {
|
| 133 |
|
| 134 |
+
// Activate WordPress plugins
|
| 135 |
if ( isset( $blog['New']['Plugins'] ) && ( $plugins = $blog['New']['Plugins'] ) ) {
|
| 136 |
ai1wm_activate_plugins( $plugins );
|
| 137 |
}
|
| 138 |
|
| 139 |
+
// Activate WordPress template
|
| 140 |
if ( isset( $blog['New']['Template'] ) && ( $template = $blog['New']['Template'] ) ) {
|
| 141 |
ai1wm_activate_template( $template );
|
| 142 |
}
|
| 143 |
|
| 144 |
+
// Activate WordPress stylesheet
|
| 145 |
if ( isset( $blog['New']['Stylesheet'] ) && ( $stylesheet = $blog['New']['Stylesheet'] ) ) {
|
| 146 |
ai1wm_activate_stylesheet( $stylesheet );
|
| 147 |
}
|
| 148 |
|
| 149 |
+
// Deactivate WordPress SSL plugins
|
| 150 |
if ( ! is_ssl() ) {
|
| 151 |
ai1wm_deactivate_plugins( array(
|
| 152 |
'really-simple-ssl/rlrsssl-really-simple-ssl.php',
|
| 155 |
) );
|
| 156 |
}
|
| 157 |
|
| 158 |
+
// Deactivate WordPress plugins
|
| 159 |
+
ai1wm_deactivate_plugins( array(
|
| 160 |
+
'invisible-recaptcha/invisible-recaptcha.php',
|
| 161 |
+
) );
|
| 162 |
+
|
| 163 |
+
// Deactivate Jetpack modules
|
| 164 |
+
ai1wm_deactivate_jetpack_modules( array(
|
| 165 |
+
'photon',
|
| 166 |
+
'sso',
|
| 167 |
+
) );
|
| 168 |
}
|
| 169 |
}
|
| 170 |
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ 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: 4.9
|
| 6 |
-
Stable tag: 6.
|
| 7 |
License: GPLv2 or later
|
| 8 |
|
| 9 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
|
@@ -94,6 +94,12 @@ Alternatively you can download the plugin using the download button on this page
|
|
| 94 |
3. Plugin Menu
|
| 95 |
|
| 96 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
= 6.63 =
|
| 98 |
**Added**
|
| 99 |
|
|
@@ -103,7 +109,7 @@ Alternatively you can download the plugin using the download button on this page
|
|
| 103 |
**Fixed**
|
| 104 |
|
| 105 |
* Wrong next backup date on Settings page
|
| 106 |
-
* 🇯🇵Japanese translation on Backups page
|
| 107 |
|
| 108 |
**Changed**
|
| 109 |
|
| 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: 4.9
|
| 6 |
+
Stable tag: 6.64
|
| 7 |
License: GPLv2 or later
|
| 8 |
|
| 9 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
| 94 |
3. Plugin Menu
|
| 95 |
|
| 96 |
== Changelog ==
|
| 97 |
+
= 6.64 =
|
| 98 |
+
**Added**
|
| 99 |
+
|
| 100 |
+
* Deactivate Jetpack SSO module on import
|
| 101 |
+
* Deactivate Invisible reCaptcha plugin on import
|
| 102 |
+
|
| 103 |
= 6.63 =
|
| 104 |
**Added**
|
| 105 |
|
| 109 |
**Fixed**
|
| 110 |
|
| 111 |
* Wrong next backup date on Settings page
|
| 112 |
+
* 🇯🇵 Japanese translation on Backups page
|
| 113 |
|
| 114 |
**Changed**
|
| 115 |
|
