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

Version Description

  • Fix: After update from wpstg 1.6.x to 2.x previous settings were not imported resulting in cancelation of cloning process. Still not fixed in 2.0.7
Download this release

Release Info

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

Code changes from version 2.0.7 to 2.0.8

apps/Backend/Modules/Jobs/Cloning.php CHANGED
@@ -31,6 +31,9 @@ class Cloning extends Job
31
  $this->options->clone = $_POST["cloneID"];
32
  $this->options->cloneDirectoryName = preg_replace("#\W+#", '-', strtolower($this->options->clone));
33
  $this->options->cloneNumber = 1;
 
 
 
34
 
35
  // Job
36
  $this->options->job = new \stdClass();
31
  $this->options->clone = $_POST["cloneID"];
32
  $this->options->cloneDirectoryName = preg_replace("#\W+#", '-', strtolower($this->options->clone));
33
  $this->options->cloneNumber = 1;
34
+ $this->options->includedDirectories = array();
35
+ $this->options->excludedDirectories = array();
36
+ $this->options->extraDirectories = array();
37
 
38
  // Job
39
  $this->options->job = new \stdClass();
apps/Backend/Modules/Jobs/Job.php CHANGED
@@ -114,7 +114,8 @@ abstract class Job implements JobInterface
114
 
115
  // Settings and Options
116
  $this->options = $this->cache->get("clone_options");
117
- $this->settings = json_decode(json_encode(get_option("wpstg_settings", array())));
 
118
 
119
 
120
 
@@ -129,8 +130,7 @@ abstract class Job implements JobInterface
129
  $this->options->existingClones = json_decode(json_encode($this->options->existingClones), true);
130
  }
131
 
132
- if (!$this->settings || !$this->settings->queryLimit || !$this->settings->batchSize || !$this->cpuLoad)
133
- //if (!$this->settings)
134
  {
135
  $this->settings = new \stdClass();
136
  $this->setDefaultSettings();
@@ -178,6 +178,7 @@ abstract class Job implements JobInterface
178
  $this->settings->queryLimit = "1000";
179
  $this->settings->batchSize = "2";
180
  $this->settings->cpuLoad = 'medium';
 
181
  }
182
 
183
  /**
114
 
115
  // Settings and Options
116
  $this->options = $this->cache->get("clone_options");
117
+ //$this->settings = json_decode(json_encode(get_option("wpstg_settings", array())));
118
+ $this->settings = (object)get_option("wpstg_settings", array());
119
 
120
 
121
 
130
  $this->options->existingClones = json_decode(json_encode($this->options->existingClones), true);
131
  }
132
 
133
+ if (!isset($this->settings) || !isset($this->settings->queryLimit) || !isset($this->settings->batchSize) || !isset($this->settings->cpuLoad))
 
134
  {
135
  $this->settings = new \stdClass();
136
  $this->setDefaultSettings();
178
  $this->settings->queryLimit = "1000";
179
  $this->settings->batchSize = "2";
180
  $this->settings->cpuLoad = 'medium';
181
+ update_option('wpstg_settings', $this->settings);
182
  }
183
 
184
  /**
apps/Core/WPStaging.php CHANGED
@@ -29,7 +29,7 @@ final class WPStaging {
29
  /**
30
  * Plugin version
31
  */
32
- const VERSION = "2.0.7";
33
 
34
  /**
35
  * Plugin name
29
  /**
30
  * Plugin version
31
  */
32
+ const VERSION = "2.0.8";
33
 
34
  /**
35
  * Plugin name
readme.txt CHANGED
@@ -9,7 +9,7 @@ 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.0.7
13
 
14
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
 
@@ -141,6 +141,9 @@ https://wp-staging.com
141
 
142
 
143
 
 
 
 
144
  = 2.0.7 =
145
  * Fix: After update from wpstg 1.6.x to 2.x previous settings were not imported resulting in cancelation of cloning process
146
 
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.0.8
13
 
14
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
 
141
 
142
 
143
 
144
+ = 2.0.8 =
145
+ * Fix: After update from wpstg 1.6.x to 2.x previous settings were not imported resulting in cancelation of cloning process. Still not fixed in 2.0.7
146
+
147
  = 2.0.7 =
148
  * Fix: After update from wpstg 1.6.x to 2.x previous settings were not imported resulting in cancelation of cloning process
149
 
wp-staging.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Create a staging clone site for testing & developing
7
  * Author: WP-Staging, René Hermenau, Ilgıt Yıldırım
8
  * Author URI: https://wordpress.org/plugins/wp-staging
9
- * Version: 2.0.7
10
  * Text Domain: wpstg
11
  * Domain Path: /languages/
12
 
6
  * Description: Create a staging clone site for testing & developing
7
  * Author: WP-Staging, René Hermenau, Ilgıt Yıldırım
8
  * Author URI: https://wordpress.org/plugins/wp-staging
9
+ * Version: 2.0.8
10
  * Text Domain: wpstg
11
  * Domain Path: /languages/
12