WP Staging – DB & File Duplicator & Migration - Version 2.1.5

Version Description

  • Fix. Change link to support
  • Fix: Missing files in clone site if copy file limit is higher than 1
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 WP Staging – DB & File Duplicator & Migration
Version 2.1.5
Comparing to
See all releases

Code changes from version 2.1.4 to 2.1.5

apps/Backend/Modules/Jobs/Files.php CHANGED
@@ -110,8 +110,9 @@ class Files extends JobExecutable {
110
  }
111
 
112
  // Go to last copied line and than to next one
113
- if ($this->options->copiedFiles != 0) {
114
- $this->file->seek($this->options->copiedFiles);
 
115
  }
116
 
117
  $this->file->setFlags(\SplFileObject::SKIP_EMPTY | \SplFileObject::READ_AHEAD);
@@ -135,6 +136,8 @@ class Files extends JobExecutable {
135
  if ($this->file->eof()) {
136
  break;
137
  }
 
 
138
  $file = $this->file->fgets();
139
  $this->debugLog('copy file ' . $file, Logger::TYPE_DEBUG);
140
  $this->copyFile($file);
@@ -142,8 +145,8 @@ class Files extends JobExecutable {
142
 
143
  }
144
 
145
- $totalFiles = $this->maxFilesPerRun + $this->options->copiedFiles;
146
- //$totalFiles = $this->options->copiedFiles;
147
  $this->log("Total {$totalFiles} files processed");
148
  //$this->saveCopiedFiles();
149
 
110
  }
111
 
112
  // Go to last copied line and than to next one
113
+ //if ($this->options->copiedFiles != 0) {
114
+ if (isset($this->options->copiedFiles) && $this->options->copiedFiles != 0) {
115
+ $this->file->seek($this->options->copiedFiles-1);
116
  }
117
 
118
  $this->file->setFlags(\SplFileObject::SKIP_EMPTY | \SplFileObject::READ_AHEAD);
136
  if ($this->file->eof()) {
137
  break;
138
  }
139
+
140
+
141
  $file = $this->file->fgets();
142
  $this->debugLog('copy file ' . $file, Logger::TYPE_DEBUG);
143
  $this->copyFile($file);
145
 
146
  }
147
 
148
+ //$totalFiles = $this->maxFilesPerRun + $this->options->copiedFiles;
149
+ $totalFiles = $this->options->copiedFiles;
150
  $this->log("Total {$totalFiles} files processed");
151
  //$this->saveCopiedFiles();
152
 
apps/Backend/Modules/Jobs/Job.php CHANGED
@@ -334,7 +334,7 @@ abstract class Job implements JobInterface
334
 
335
  if ($time >= $this->executionLimit)
336
  {
337
- //$this->log('RESET TIME');
338
  return true;
339
  }
340
 
334
 
335
  if ($time >= $this->executionLimit)
336
  {
337
+ $this->log('RESET TIME: current time: ' . $time . ', Start Time: ' . $this->start . ', exec time limit: ' . $this->executionLimit);
338
  return true;
339
  }
340
 
apps/Backend/public/js/wpstg-admin.js CHANGED
@@ -363,7 +363,7 @@ var WPStaging = (function ($)
363
  showError(
364
  "Fatal Unknown Error. Go to WP Staging > Settings and set 'File Copy Limit' to 1. Also try to lower 'cpu load' there." +
365
  "Than try again. If this does not help, " +
366
- "<a href='https://wpquads.com/support/' target='_blank'>open a support ticket</a> "
367
  );
368
  },
369
  success: function (data) {
363
  showError(
364
  "Fatal Unknown Error. Go to WP Staging > Settings and set 'File Copy Limit' to 1. Also try to lower 'cpu load' there." +
365
  "Than try again. If this does not help, " +
366
+ "<a href='https://wp-staging.com/support/' target='_blank'>open a support ticket</a> "
367
  );
368
  },
369
  success: function (data) {
apps/Core/WPStaging.php CHANGED
@@ -29,7 +29,7 @@ final class WPStaging {
29
  /**
30
  * Plugin version
31
  */
32
- const VERSION = "2.1.4";
33
 
34
  /**
35
  * Plugin name
@@ -44,7 +44,7 @@ final class WPStaging {
44
  /**
45
  * Compatible WP Version
46
  */
47
- const WP_COMPATIBLE = "4.8.4";
48
 
49
  /**
50
  * Slug: Either wp-staging or wp-staging-pro
29
  /**
30
  * Plugin version
31
  */
32
+ const VERSION = "2.1.5";
33
 
34
  /**
35
  * Plugin name
44
  /**
45
  * Compatible WP Version
46
  */
47
+ const WP_COMPATIBLE = "4.9.1";
48
 
49
  /**
50
  * Slug: Either wp-staging or wp-staging-pro
readme.txt CHANGED
@@ -8,8 +8,8 @@ License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: staging, duplication, cloning, clone, migration, sandbox, test site, testing, backup, post, admin, administration, duplicate posts
10
  Requires at least: 3.6+
11
- Tested up to: 4.8
12
- Stable tag: 2.1.4
13
 
14
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
 
@@ -139,6 +139,10 @@ https://wp-staging.com
139
 
140
  == Changelog ==
141
 
 
 
 
 
142
  = 2.1.4 =
143
  * Fix: Link to the staging site is missing a slash if WordPress is installed in subdir
144
  * Tweak: Allow file copy limit 1 to prevent copy timeouts
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: staging, duplication, cloning, clone, migration, sandbox, test site, testing, backup, post, admin, administration, duplicate posts
10
  Requires at least: 3.6+
11
+ Tested up to: 4.9
12
+ Stable tag: 2.1.5
13
 
14
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
 
139
 
140
  == Changelog ==
141
 
142
+ = 2.1.5 =
143
+ * Fix. Change link to support
144
+ * Fix: Missing files in clone site if copy file limit is higher than 1
145
+
146
  = 2.1.4 =
147
  * Fix: Link to the staging site is missing a slash if WordPress is installed in subdir
148
  * Tweak: Allow file copy limit 1 to prevent copy timeouts
wp-staging.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author: WP-Staging
8
  * Author URI: https://wp-staging.com
9
  * Contributors: ReneHermi, ilgityildirim
10
- * Version: 2.1.4
11
  * Text Domain: wpstg
12
  * Domain Path: /languages/
13
 
7
  * Author: WP-Staging
8
  * Author URI: https://wp-staging.com
9
  * Contributors: ReneHermi, ilgityildirim
10
+ * Version: 2.1.5
11
  * Text Domain: wpstg
12
  * Domain Path: /languages/
13