Version Description
Added
- Better support for WordPress v6.0.2
Download this release
Release Info
Developer | bangelov |
Plugin | All-in-One WP Migration |
Version | 7.66 |
Comparing to | |
See all releases |
Code changes from version 7.65 to 7.66
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.66
|
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.66' );
|
39 |
|
40 |
// ===============
|
41 |
// = Plugin Name =
|
lib/model/export/class-ai1wm-export-database.php
CHANGED
@@ -139,6 +139,9 @@ class Ai1wm_Export_Database {
|
|
139 |
->set_old_column_prefixes( $old_column_prefixes )
|
140 |
->set_new_column_prefixes( $new_column_prefixes );
|
141 |
|
|
|
|
|
|
|
142 |
// Exclude site options
|
143 |
$mysql->set_table_where_query( ai1wm_table_prefix() . 'options', sprintf( "`option_name` NOT IN ('%s', '%s', '%s', '%s', '%s', '%s')", AI1WM_STATUS, AI1WM_SECRET_KEY, AI1WM_AUTH_USER, AI1WM_AUTH_PASSWORD, AI1WM_BACKUPS_LABELS, AI1WM_SITES_LINKS ) );
|
144 |
|
139 |
->set_old_column_prefixes( $old_column_prefixes )
|
140 |
->set_new_column_prefixes( $new_column_prefixes );
|
141 |
|
142 |
+
// Exclude column prefixes
|
143 |
+
$mysql->set_reserved_column_prefixes( array( 'wp_force_deactivated_plugins', 'wp_page_for_privacy_policy' ) );
|
144 |
+
|
145 |
// Exclude site options
|
146 |
$mysql->set_table_where_query( ai1wm_table_prefix() . 'options', sprintf( "`option_name` NOT IN ('%s', '%s', '%s', '%s', '%s', '%s')", AI1WM_STATUS, AI1WM_SECRET_KEY, AI1WM_AUTH_USER, AI1WM_AUTH_PASSWORD, AI1WM_BACKUPS_LABELS, AI1WM_SITES_LINKS ) );
|
147 |
|
lib/vendor/servmask/database/class-ai1wm-database.php
CHANGED
@@ -85,6 +85,13 @@ abstract class Ai1wm_Database {
|
|
85 |
*/
|
86 |
protected $new_column_prefixes = array();
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
/**
|
89 |
* Old replace values
|
90 |
*
|
@@ -305,6 +312,27 @@ abstract class Ai1wm_Database {
|
|
305 |
return $this->new_column_prefixes;
|
306 |
}
|
307 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
/**
|
309 |
* Set old replace values
|
310 |
*
|
@@ -1500,11 +1528,19 @@ abstract class Ai1wm_Database {
|
|
1500 |
* @return string
|
1501 |
*/
|
1502 |
protected function replace_column_prefixes( $input, $position = false ) {
|
1503 |
-
$search
|
1504 |
-
$replace
|
|
|
1505 |
|
1506 |
// Replace first occurrence at a specified position
|
1507 |
if ( $position !== false ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1508 |
for ( $i = 0; $i < count( $search ); $i++ ) {
|
1509 |
$current = stripos( $input, $search[ $i ], $position );
|
1510 |
if ( $current === $position ) {
|
85 |
*/
|
86 |
protected $new_column_prefixes = array();
|
87 |
|
88 |
+
/**
|
89 |
+
* Reserved column prefixes
|
90 |
+
*
|
91 |
+
* @var array
|
92 |
+
*/
|
93 |
+
protected $reserved_column_prefixes = array();
|
94 |
+
|
95 |
/**
|
96 |
* Old replace values
|
97 |
*
|
312 |
return $this->new_column_prefixes;
|
313 |
}
|
314 |
|
315 |
+
/**
|
316 |
+
* Set reserved column prefixes
|
317 |
+
*
|
318 |
+
* @param array $prefixes List of column prefixes
|
319 |
+
* @return object
|
320 |
+
*/
|
321 |
+
public function set_reserved_column_prefixes( $prefixes ) {
|
322 |
+
$this->reserved_column_prefixes = $prefixes;
|
323 |
+
|
324 |
+
return $this;
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Get reserved column prefixes
|
329 |
+
*
|
330 |
+
* @return array
|
331 |
+
*/
|
332 |
+
public function get_reserved_column_prefixes() {
|
333 |
+
return $this->reserved_column_prefixes;
|
334 |
+
}
|
335 |
+
|
336 |
/**
|
337 |
* Set old replace values
|
338 |
*
|
1528 |
* @return string
|
1529 |
*/
|
1530 |
protected function replace_column_prefixes( $input, $position = false ) {
|
1531 |
+
$search = $this->get_old_column_prefixes();
|
1532 |
+
$replace = $this->get_new_column_prefixes();
|
1533 |
+
$reserved = $this->get_reserved_column_prefixes();
|
1534 |
|
1535 |
// Replace first occurrence at a specified position
|
1536 |
if ( $position !== false ) {
|
1537 |
+
for ( $i = 0; $i < count( $reserved ); $i++ ) {
|
1538 |
+
$current = stripos( $input, $reserved[ $i ], $position );
|
1539 |
+
if ( $current === $position ) {
|
1540 |
+
return $input;
|
1541 |
+
}
|
1542 |
+
}
|
1543 |
+
|
1544 |
for ( $i = 0; $i < count( $search ); $i++ ) {
|
1545 |
$current = stripos( $input, $search[ $i ], $position );
|
1546 |
if ( $current === $position ) {
|
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: 6.0
|
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.65 =
|
93 |
**Added**
|
94 |
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.2.17
|
7 |
+
Stable tag: 7.66
|
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.66 =
|
93 |
+
**Added**
|
94 |
+
|
95 |
+
* Better support for WordPress v6.0.2
|
96 |
+
|
97 |
= 7.65 =
|
98 |
**Added**
|
99 |
|