All-in-One WP Migration - Version 6.65

Version Description

Added

  • New plugin icons on WP Admin Updates page

Fixed

  • Table prefix replacement of subsite options table on export
Download this release

Release Info

Developer bangelov
Plugin Icon 128x128 All-in-One WP Migration
Version 6.65
Comparing to
See all releases

Code changes from version 6.64 to 6.65

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.64
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.65
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.64' );
35
 
36
  // ===============
37
  // = Plugin Name =
31
  // ==================
32
  // = Plugin Version =
33
  // ==================
34
+ define( 'AI1WM_VERSION', '6.65' );
35
 
36
  // ===============
37
  // = Plugin Name =
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.48',
80
  'short' => AI1WMME_PLUGIN_SHORT,
81
  );
82
  }
76
  'about' => AI1WMME_PLUGIN_ABOUT,
77
  'basename' => AI1WMME_PLUGIN_BASENAME,
78
  'version' => AI1WMME_VERSION,
79
+ 'requires' => '3.49',
80
  'short' => AI1WMME_PLUGIN_SHORT,
81
  );
82
  }
lib/model/class-ai1wm-updater.php CHANGED
@@ -38,6 +38,7 @@ class Ai1wm_Updater {
38
  return $result;
39
  }
40
 
 
41
  $extensions = Ai1wm_Extensions::get();
42
 
43
  // View details page
@@ -62,6 +63,9 @@ class Ai1wm_Updater {
62
  * @return object
63
  */
64
  public static function update_plugins( $transient ) {
 
 
 
65
  $extensions = Ai1wm_Extensions::get();
66
 
67
  // Get current updates
@@ -86,6 +90,8 @@ class Ai1wm_Updater {
86
  'url' => $update['homepage'],
87
  'plugin' => $extension['basename'],
88
  'package' => sprintf( '%s/%s?siteurl=%s', $update['download_link'], $key, $url ),
 
 
89
  );
90
  }
91
  }
38
  return $result;
39
  }
40
 
41
+ // Get extensions
42
  $extensions = Ai1wm_Extensions::get();
43
 
44
  // View details page
63
  * @return object
64
  */
65
  public static function update_plugins( $transient ) {
66
+ global $wp_version;
67
+
68
+ // Get extensions
69
  $extensions = Ai1wm_Extensions::get();
70
 
71
  // Get current updates
90
  'url' => $update['homepage'],
91
  'plugin' => $extension['basename'],
92
  'package' => sprintf( '%s/%s?siteurl=%s', $update['download_link'], $key, $url ),
93
+ 'tested' => $wp_version,
94
+ 'icons' => $update['icons'],
95
  );
96
  }
97
  }
lib/model/export/class-ai1wm-export-database.php CHANGED
@@ -67,14 +67,10 @@ class Ai1wm_Export_Database {
67
  $mysql = new Ai1wm_Database_Mysqli( $wpdb );
68
  }
69
 
70
- // Replace table prefix on columns
71
- $mysql->set_table_prefix_columns( ai1wm_table_prefix() . 'options', array( 'option_name' ) )
72
- ->set_table_prefix_columns( ai1wm_table_prefix() . 'usermeta', array( 'meta_key' ) );
73
-
74
  // Spam comments
75
  if ( isset( $params['options']['no_spam_comments'] ) ) {
76
- $mysql->set_table_where_clauses( ai1wm_table_prefix() . 'comments', array( "`comment_approved` != 'spam'" ) );
77
- $mysql->set_table_where_clauses( ai1wm_table_prefix() . 'commentmeta', array( sprintf( "`comment_ID` IN ( SELECT `comment_ID` FROM `%s` WHERE `comment_approved` != 'spam' )", ai1wm_table_prefix() . 'comments' ) ) );
78
  }
79
 
80
  // Post revisions
@@ -97,7 +93,7 @@ class Ai1wm_Export_Database {
97
  }
98
 
99
  // Set table prefixes based on user meta
100
- foreach ( array( 'capabilities', 'user_level', 'user_roles' ) as $user_meta ) {
101
  $old_table_prefixes[] = $user_meta;
102
  $new_table_prefixes[] = ai1wm_servmask_prefix() . $user_meta;
103
  }
@@ -121,9 +117,13 @@ class Ai1wm_Export_Database {
121
  ->set_include_table_prefixes( $include_table_prefixes )
122
  ->set_exclude_table_prefixes( $exclude_table_prefixes );
123
 
124
- // Exclude active plugins and status options
125
  $mysql->set_table_where_clauses( ai1wm_table_prefix() . 'options', array( sprintf( "`option_name` NOT IN ('%s', '%s', '%s', '%s')", AI1WM_ACTIVE_PLUGINS, AI1WM_ACTIVE_TEMPLATE, AI1WM_ACTIVE_STYLESHEET, AI1WM_STATUS ) ) );
126
 
 
 
 
 
127
  // Export database
128
  if ( $mysql->export( ai1wm_database_path( $params ), $table_index, $table_offset, 10 ) ) {
129
 
67
  $mysql = new Ai1wm_Database_Mysqli( $wpdb );
68
  }
69
 
 
 
 
 
70
  // Spam comments
71
  if ( isset( $params['options']['no_spam_comments'] ) ) {
72
+ $mysql->set_table_where_clauses( ai1wm_table_prefix() . 'comments', array( "`comment_approved` != 'spam'" ) )
73
+ ->set_table_where_clauses( ai1wm_table_prefix() . 'commentmeta', array( sprintf( "`comment_ID` IN ( SELECT `comment_ID` FROM `%s` WHERE `comment_approved` != 'spam' )", ai1wm_table_prefix() . 'comments' ) ) );
74
  }
75
 
76
  // Post revisions
93
  }
94
 
95
  // Set table prefixes based on user meta
96
+ foreach ( array( 'capabilities', 'user_level', 'user_roles', 'dashboard_quick_press_last_post_id', 'user-settings', 'user-settings-time' ) as $user_meta ) {
97
  $old_table_prefixes[] = $user_meta;
98
  $new_table_prefixes[] = ai1wm_servmask_prefix() . $user_meta;
99
  }
117
  ->set_include_table_prefixes( $include_table_prefixes )
118
  ->set_exclude_table_prefixes( $exclude_table_prefixes );
119
 
120
+ // Exclude table options
121
  $mysql->set_table_where_clauses( ai1wm_table_prefix() . 'options', array( sprintf( "`option_name` NOT IN ('%s', '%s', '%s', '%s')", AI1WM_ACTIVE_PLUGINS, AI1WM_ACTIVE_TEMPLATE, AI1WM_ACTIVE_STYLESHEET, AI1WM_STATUS ) ) );
122
 
123
+ // Replace table prefix on columns
124
+ $mysql->set_table_prefix_columns( ai1wm_table_prefix() . 'options', array( 'option_name' ) )
125
+ ->set_table_prefix_columns( ai1wm_table_prefix() . 'usermeta', array( 'meta_key' ) );
126
+
127
  // Export database
128
  if ( $mysql->export( ai1wm_database_path( $params ), $table_index, $table_offset, 10 ) ) {
129
 
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.64
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,15 @@ Alternatively you can download the plugin using the download button on this page
94
  3. Plugin Menu
95
 
96
  == Changelog ==
 
 
 
 
 
 
 
 
 
97
  = 6.64 =
98
  **Added**
99
 
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.65
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.65 =
98
+ **Added**
99
+
100
+ * New plugin icons on WP Admin Updates page
101
+
102
+ **Fixed**
103
+
104
+ * Table prefix replacement of subsite options table on export
105
+
106
  = 6.64 =
107
  **Added**
108