Version Description
- Improve the performance when exporting database
Download this release
Release Info
Developer | bangelov |
Plugin | All-in-One WP Migration |
Version | 6.42 |
Comparing to | |
See all releases |
Code changes from version 6.41 to 6.42
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- lib/vendor/servmask/database/class-ai1wm-database.php +32 -28
- readme.txt +4 -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: 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.42
|
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.42' );
|
35 |
|
36 |
// ===============
|
37 |
// = Plugin Name =
|
lib/vendor/servmask/database/class-ai1wm-database.php
CHANGED
@@ -722,24 +722,26 @@ abstract class Ai1wm_Database {
|
|
722 |
* @return string
|
723 |
*/
|
724 |
protected function replace_table_export_values( $input ) {
|
725 |
-
$this->
|
|
|
726 |
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
|
737 |
-
|
738 |
-
|
739 |
|
740 |
-
|
741 |
-
|
742 |
-
|
|
|
743 |
}
|
744 |
|
745 |
return $input;
|
@@ -752,24 +754,26 @@ abstract class Ai1wm_Database {
|
|
752 |
* @return string
|
753 |
*/
|
754 |
protected function replace_table_import_values( $input ) {
|
755 |
-
$this->
|
|
|
756 |
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
|
767 |
-
|
768 |
-
|
769 |
|
770 |
-
|
771 |
-
|
772 |
-
|
|
|
773 |
}
|
774 |
|
775 |
return $input;
|
722 |
* @return string
|
723 |
*/
|
724 |
protected function replace_table_export_values( $input ) {
|
725 |
+
if ( $this->get_old_replace_values() ) {
|
726 |
+
$this->number_of_replaces = 0;
|
727 |
|
728 |
+
// Serialization format
|
729 |
+
$array = '(a:\d+:{.+?})';
|
730 |
+
$string = '(s:\d+:\\\\?"(.+?)\\\\?";)';
|
731 |
+
$object = '(O:\d+:\\\\?"(.+?)\\\\?":\d+:{.*?})';
|
732 |
|
733 |
+
// Replace base64 encoded values (Visual Composer)
|
734 |
+
if ( $this->get_visual_composer() ) {
|
735 |
+
$input = preg_replace_callback( "/(?<=\[vc_raw_html\])(.+?)(?=\[\/vc_raw_html\])/S", array( $this, 'replace_base64_values_callback' ), $input );
|
736 |
+
}
|
737 |
|
738 |
+
// Replace serialized values
|
739 |
+
$input = preg_replace_callback( "/(?<=\A)($array|$string|$object)(?=\z)/S", array( $this, 'replace_serialized_values_callback' ), $input );
|
740 |
|
741 |
+
// Replace values
|
742 |
+
if ( $this->number_of_replaces === 0 ) {
|
743 |
+
$input = Ai1wm_Database_Utility::replace_values( $this->get_old_replace_values(), $this->get_new_replace_values(), $input );
|
744 |
+
}
|
745 |
}
|
746 |
|
747 |
return $input;
|
754 |
* @return string
|
755 |
*/
|
756 |
protected function replace_table_import_values( $input ) {
|
757 |
+
if ( $this->get_old_replace_values() ) {
|
758 |
+
$this->number_of_replaces = 0;
|
759 |
|
760 |
+
// Serialization format
|
761 |
+
$array = '(a:\d+:{.+?})';
|
762 |
+
$string = '(s:\d+:\\\\?"(.+?)\\\\?";)';
|
763 |
+
$object = '(O:\d+:\\\\?"(.+?)\\\\?":\d+:{.*?})';
|
764 |
|
765 |
+
// Replace base64 encoded values (Visual Composer)
|
766 |
+
if ( $this->get_visual_composer() ) {
|
767 |
+
$input = preg_replace_callback( "/(?<=\[vc_raw_html\])(.+?)(?=\[\/vc_raw_html\])/S", array( $this, 'replace_base64_values_callback' ), $input );
|
768 |
+
}
|
769 |
|
770 |
+
// Replace serialized values
|
771 |
+
$input = preg_replace_callback( "/(?<=')($array|$string|$object)(?=')/S", array( $this, 'replace_serialized_values_callback' ), $input );
|
772 |
|
773 |
+
// Replace values
|
774 |
+
if ( $this->number_of_replaces === 0 ) {
|
775 |
+
$input = Ai1wm_Database_Utility::replace_values( $this->get_old_replace_values(), $this->get_new_replace_values(), $input );
|
776 |
+
}
|
777 |
}
|
778 |
|
779 |
return $input;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: yani.iliev, bangelov, pimjitsawang
|
|
3 |
Tags: db migration, migration, wordpress migration, db backup, db restore, website backup, website restore, website migration, website deploy, wordpress deploy, db backup, database export, database serialization, database find replace
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 6.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
All-in-One WP Migration is the only tool that you will ever need to migrate a WordPress site.
|
@@ -78,6 +78,9 @@ All in One WP Plugin is the first plugin to offer true mobile experience on Word
|
|
78 |
3. Plugin Menu
|
79 |
|
80 |
== Changelog ==
|
|
|
|
|
|
|
81 |
= 6.41 =
|
82 |
* Support Visual Composer plugin
|
83 |
* Support Jetpack Photon module
|
3 |
Tags: db migration, migration, wordpress migration, db backup, db restore, website backup, website restore, website migration, website deploy, wordpress deploy, db backup, database export, database serialization, database find replace
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 6.42
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
All-in-One WP Migration is the only tool that you will ever need to migrate a WordPress site.
|
78 |
3. Plugin Menu
|
79 |
|
80 |
== Changelog ==
|
81 |
+
= 6.42 =
|
82 |
+
* Improve the performance when exporting database
|
83 |
+
|
84 |
= 6.41 =
|
85 |
* Support Visual Composer plugin
|
86 |
* Support Jetpack Photon module
|