Version Description
- Fix: After update from wpstg 1.6.x to 2.x previous settings were not imported resulting in cancelation of cloning process
Download this release
Release Info
Developer | ReneHermi |
Plugin | WP Staging – DB & File Duplicator & Migration |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- apps/Backend/Modules/Jobs/Job.php +4 -2
- apps/Backend/public/js/wpstg-admin.js +3 -2
- apps/Core/WPStaging.php +1 -1
- readme.txt +5 -1
- wp-staging.php +1 -3
apps/Backend/Modules/Jobs/Job.php
CHANGED
@@ -118,7 +118,8 @@ abstract class Job implements JobInterface
|
|
118 |
|
119 |
|
120 |
|
121 |
-
|
|
|
122 |
{
|
123 |
$this->options = new \stdClass();
|
124 |
}
|
@@ -128,7 +129,8 @@ abstract class Job implements JobInterface
|
|
128 |
$this->options->existingClones = json_decode(json_encode($this->options->existingClones), true);
|
129 |
}
|
130 |
|
131 |
-
if (!$this->settings)
|
|
|
132 |
{
|
133 |
$this->settings = new \stdClass();
|
134 |
$this->setDefaultSettings();
|
118 |
|
119 |
|
120 |
|
121 |
+
// check default options
|
122 |
+
if (!$this->settings)
|
123 |
{
|
124 |
$this->options = new \stdClass();
|
125 |
}
|
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();
|
apps/Backend/public/js/wpstg-admin.js
CHANGED
@@ -667,8 +667,9 @@ var WPStaging = (function ($)
|
|
667 |
if (log != null && "undefined" !== typeof (log)) {
|
668 |
if (log.constructor === Array) {
|
669 |
$.each(log, function (index, value) {
|
670 |
-
|
671 |
-
|
|
|
672 |
if (value.type === 'ERROR'){
|
673 |
cache.get("#wpstg-log-details").append('<span style="color:red;">[' + value.type + ']</span>-'+ '[' + value.date + '] ' + value.message + '</br>');
|
674 |
} else {
|
667 |
if (log != null && "undefined" !== typeof (log)) {
|
668 |
if (log.constructor === Array) {
|
669 |
$.each(log, function (index, value) {
|
670 |
+
if (value === null){
|
671 |
+
return;
|
672 |
+
}
|
673 |
if (value.type === 'ERROR'){
|
674 |
cache.get("#wpstg-log-details").append('<span style="color:red;">[' + value.type + ']</span>-'+ '[' + value.date + '] ' + value.message + '</br>');
|
675 |
} else {
|
apps/Core/WPStaging.php
CHANGED
@@ -29,7 +29,7 @@ final class WPStaging {
|
|
29 |
/**
|
30 |
* Plugin version
|
31 |
*/
|
32 |
-
const VERSION = "2.0.
|
33 |
|
34 |
/**
|
35 |
* Plugin name
|
29 |
/**
|
30 |
* Plugin version
|
31 |
*/
|
32 |
+
const VERSION = "2.0.7";
|
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.
|
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,10 @@ https://wp-staging.com
|
|
141 |
|
142 |
|
143 |
|
|
|
|
|
|
|
|
|
144 |
= 2.0.6 =
|
145 |
* Fix: Cancel Cloning button not working
|
146 |
* Fix: Limit max execution time to a maximum of 30sec to prevent high memory consumption and script timeouts
|
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 |
|
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 |
+
|
147 |
+
|
148 |
= 2.0.6 =
|
149 |
* Fix: Cancel Cloning button not working
|
150 |
* Fix: Limit max execution time to a maximum of 30sec to prevent high memory consumption and script timeouts
|
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.
|
10 |
* Text Domain: wpstg
|
11 |
* Domain Path: /languages/
|
12 |
|
@@ -44,8 +44,6 @@ if( !defined( 'WPSTG_PLUGIN_URL' ) ) {
|
|
44 |
define( 'WPSTG_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
45 |
}
|
46 |
|
47 |
-
//require_once WPSTG_PLUGIN_DIR . 'apps/Backend/Install/install.php';
|
48 |
-
|
49 |
/**
|
50 |
* Path to main WP Staging class
|
51 |
* Make sure to not redeclare class in case free version has been installed previosly
|
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 |
|
44 |
define( 'WPSTG_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
45 |
}
|
46 |
|
|
|
|
|
47 |
/**
|
48 |
* Path to main WP Staging class
|
49 |
* Make sure to not redeclare class in case free version has been installed previosly
|