All-in-One WP Migration - Version 6.95

Version Description

Changed

  • Remove the cleanup of failed imports. It causes some of the imports to fail
Download this release

Release Info

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

Code changes from version 6.94 to 6.95

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.94
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.95
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', '6.94' );
39
 
40
  // ===============
41
  // = Plugin Name =
35
  // ==================
36
  // = Plugin Version =
37
  // ==================
38
+ define( 'AI1WM_VERSION', '6.95' );
39
 
40
  // ===============
41
  // = Plugin Name =
lib/controller/class-ai1wm-export-controller.php CHANGED
@@ -163,38 +163,38 @@ class Ai1wm_Export_Controller {
163
  }
164
 
165
  public static function cleanup() {
166
- // Iterate over storage directory
167
- $iterator = new Ai1wm_Recursive_Directory_Iterator( AI1WM_STORAGE_PATH );
168
-
169
- // Exclude index.php
170
- $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, array( 'index.php' ) );
171
-
172
- // Recursively iterate over content directory
173
- $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::CHILD_FIRST, RecursiveIteratorIterator::CATCH_GET_CHILD );
174
-
175
- // We can't delete in the main loop since deletion updates mtime for parent folders
176
- $files = $folders = array();
177
- foreach ( $iterator as $item ) {
178
- try {
179
- if ( $item->getMTime() < time() - 23 * 60 * 60 ) {
180
- if ( $item->isFile() ) {
181
- $files[] = $item->getPathname();
182
- } elseif ( $item->isDir() ) {
183
- $folders[] = $item->getPathname();
184
- }
185
- }
186
- } catch ( Exception $e ) {
187
- }
188
- }
189
-
190
- // Delete outdated files
191
- foreach ( $files as $file ) {
192
- @unlink( $file );
193
- }
194
-
195
- // Delete outdated folders
196
- foreach ( $folders as $folder ) {
197
- Ai1wm_Directory::delete( $folder );
198
- }
199
  }
200
  }
163
  }
164
 
165
  public static function cleanup() {
166
+ // // Iterate over storage directory
167
+ // $iterator = new Ai1wm_Recursive_Directory_Iterator( AI1WM_STORAGE_PATH );
168
+
169
+ // // Exclude index.php
170
+ // $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, array( 'index.php' ) );
171
+
172
+ // // Recursively iterate over content directory
173
+ // $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::CHILD_FIRST, RecursiveIteratorIterator::CATCH_GET_CHILD );
174
+
175
+ // // We can't delete in the main loop since deletion updates mtime for parent folders
176
+ // $files = $folders = array();
177
+ // foreach ( $iterator as $item ) {
178
+ // try {
179
+ // if ( $item->getMTime() < time() - 23 * 60 * 60 ) {
180
+ // if ( $item->isFile() ) {
181
+ // $files[] = $item->getPathname();
182
+ // } elseif ( $item->isDir() ) {
183
+ // $folders[] = $item->getPathname();
184
+ // }
185
+ // }
186
+ // } catch ( Exception $e ) {
187
+ // }
188
+ // }
189
+
190
+ // // Delete outdated files
191
+ // foreach ( $files as $file ) {
192
+ // @unlink( $file );
193
+ // }
194
+
195
+ // // Delete outdated folders
196
+ // foreach ( $folders as $folder ) {
197
+ // Ai1wm_Directory::delete( $folder );
198
+ // }
199
  }
200
  }
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.2
6
  Requires PHP: 5.2.17
7
- Stable tag: 6.94
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,11 @@ 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
  = 6.94 =
112
  **Fixed**
113
 
4
  Requires at least: 3.3
5
  Tested up to: 5.2
6
  Requires PHP: 5.2.17
7
+ Stable tag: 6.95
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
+ = 6.95 =
112
+ **Changed**
113
+
114
+ * Remove the cleanup of failed imports. It causes some of the imports to fail
115
+
116
  = 6.94 =
117
  **Fixed**
118