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

Version Description

  • Fix: Undefined property: stdClass::$loginSlug
Download this release

Release Info

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

Code changes from version 2.2.1 to 2.2.2

apps/Core/WPStaging.php CHANGED
@@ -29,7 +29,7 @@ final class WPStaging {
29
/**
30
* Plugin version
31
*/
32
- const VERSION = "2.2.1";
33
34
/**
35
* Plugin name
29
/**
30
* Plugin version
31
*/
32
+ const VERSION = "2.2.2";
33
34
/**
35
* Plugin name
apps/Frontend/Frontend.php CHANGED
@@ -76,11 +76,13 @@ class Frontend extends InjectionAware {
76
* @return string
77
*/
78
private function getLoginUrl() {
79
- if( empty( $this->settings->loginSlug ) ) {
80
return wp_login_url();
81
}
82
83
- return get_home_url() . '/?' . $this->settings->loginSlug;
84
}
85
86
/**
@@ -117,10 +119,12 @@ class Frontend extends InjectionAware {
117
* @return bool
118
*/
119
private function isLoginPage() {
120
return (
121
in_array( $GLOBALS["pagenow"], array("wp-login.php") ) ||
122
- in_array( $this->settings->loginSlug, $_GET ) ||
123
- array_key_exists( $this->settings->loginSlug, $_GET )
124
);
125
}
126
76
* @return string
77
*/
78
private function getLoginUrl() {
79
+ $loginSlug = isset($this->settings->loginSlug) ? $this->settings->loginSlug : '';
80
+
81
+ if( empty( $loginSlug ) ) {
82
return wp_login_url();
83
}
84
85
+ return get_home_url() . '/?' . $loginSlug;
86
}
87
88
/**
119
* @return bool
120
*/
121
private function isLoginPage() {
122
+ $loginSlug = isset($this->settings->loginSlug) ? $this->settings->loginSlug : '';
123
+
124
return (
125
in_array( $GLOBALS["pagenow"], array("wp-login.php") ) ||
126
+ in_array( $loginSlug, $_GET ) ||
127
+ array_key_exists( $loginSlug, $_GET )
128
);
129
}
130
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.1
13
14
A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
@@ -145,6 +145,9 @@ https://wp-staging.com
145
146
== Changelog ==
147
148
= 2.2.1 =
149
* New: Option to set Custom Login Link if there is one
150
* New: Set meta noindex for staging site to make it non indexable for search engines
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.2
13
14
A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
15
145
146
== Changelog ==
147
148
+ = 2.2.2 =
149
+ * Fix: Undefined property: stdClass::$loginSlug
150
+
151
= 2.2.1 =
152
* New: Option to set Custom Login Link if there is one
153
* New: Set meta noindex for staging site to make it non indexable for search engines
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.1
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.2
11
* Text Domain: wpstg
12
* Domain Path: /languages/
13