Version Description
- Fix: Missing trailingslash results to wrong absolute paths in database after Search & Replace operation
Download this release
Release Info
Developer | ReneHermi |
Plugin | WP Staging – DB & File Duplicator & Migration |
Version | 2.2.9 |
Comparing to | |
See all releases |
Code changes from version 2.2.8 to 2.2.9
- apps/Backend/Modules/Jobs/SearchReplace.php +2 -2
- apps/Core/WPStaging.php +1 -1
- readme.txt +5 -1
- wp-staging.php +1 -1
apps/Backend/Modules/Jobs/SearchReplace.php
CHANGED
@@ -238,7 +238,7 @@ class SearchReplace extends JobExecutable {
|
|
238 |
// Search URL example.com/staging and root path to staging site /var/www/htdocs/staging
|
239 |
$args['search_for'] = array(
|
240 |
rtrim( $this->homeUrl, "/" ) . $this->getSubDir(),
|
241 |
-
ABSPATH,
|
242 |
str_replace('/', '\/', rtrim( $this->homeUrl, '/' )) . str_replace('/', '\/', $this->getSubDir()) // // Used by revslider and several visual editors
|
243 |
|
244 |
);
|
@@ -251,7 +251,7 @@ class SearchReplace extends JobExecutable {
|
|
251 |
} else {
|
252 |
$args['search_for'] = array(
|
253 |
rtrim( $this->homeUrl, '/' ),
|
254 |
-
ABSPATH,
|
255 |
str_replace('/', '\/' , rtrim( $this->homeUrl, '/' ))
|
256 |
);
|
257 |
$args['replace_with'] = array(
|
238 |
// Search URL example.com/staging and root path to staging site /var/www/htdocs/staging
|
239 |
$args['search_for'] = array(
|
240 |
rtrim( $this->homeUrl, "/" ) . $this->getSubDir(),
|
241 |
+
rtrim( ABSPATH, '/' ),
|
242 |
str_replace('/', '\/', rtrim( $this->homeUrl, '/' )) . str_replace('/', '\/', $this->getSubDir()) // // Used by revslider and several visual editors
|
243 |
|
244 |
);
|
251 |
} else {
|
252 |
$args['search_for'] = array(
|
253 |
rtrim( $this->homeUrl, '/' ),
|
254 |
+
rtrim( ABSPATH, '/' ),
|
255 |
str_replace('/', '\/' , rtrim( $this->homeUrl, '/' ))
|
256 |
);
|
257 |
$args['replace_with'] = array(
|
apps/Core/WPStaging.php
CHANGED
@@ -29,7 +29,7 @@ final class WPStaging {
|
|
29 |
/**
|
30 |
* Plugin version
|
31 |
*/
|
32 |
-
const VERSION = "2.2.
|
33 |
|
34 |
/**
|
35 |
* Plugin name
|
29 |
/**
|
30 |
* Plugin version
|
31 |
*/
|
32 |
+
const VERSION = "2.2.9";
|
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.9
|
12 |
-
Stable tag: 2.2.
|
13 |
Requires PHP: 5.3
|
14 |
|
15 |
A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
|
@@ -146,6 +146,10 @@ https://wp-staging.com
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
|
|
149 |
= 2.2.8 =
|
150 |
* New: Add filter 'wpstg_filter_options_replace' to exclude certain tables from updating while cloning
|
151 |
* New: Exclude tables for plugin wp_mail_smtp
|
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.2.9
|
13 |
Requires PHP: 5.3
|
14 |
|
15 |
A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= 2.2.9 =
|
150 |
+
* Fix: Missing trailingslash results to wrong absolute paths in database after Search & Replace operation
|
151 |
+
|
152 |
+
|
153 |
= 2.2.8 =
|
154 |
* New: Add filter 'wpstg_filter_options_replace' to exclude certain tables from updating while cloning
|
155 |
* New: Exclude tables for plugin wp_mail_smtp
|
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.2.
|
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.2.9
|
11 |
* Text Domain: wpstg
|
12 |
* Domain Path: /languages/
|
13 |
|