My Private Site - Version 2.14.2

Version Description

  • Minor fix for password reset. Thanks to user o2Xav.
Download this release

Release Info

Developer dgewirtz
Plugin Icon 128x128 My Private Site
Version 2.14.2
Comparing to
See all releases

Code changes from version 2.14.1 to 2.14.2

Files changed (3) hide show
  1. includes/public.php +10 -0
  2. jonradio-private-site.php +1 -1
  3. readme.txt +5 -2
includes/public.php CHANGED
@@ -261,7 +261,12 @@ function jr_ps_after_login_url() {
261
  } else {
262
  $http = 'https://';
263
  }
 
 
 
 
264
  $after_login_url = $http . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
 
265
  break;
266
  case 'home':
267
  $after_login_url = get_home_url();
@@ -270,7 +275,12 @@ function jr_ps_after_login_url() {
270
  $after_login_url = get_admin_url();
271
  break;
272
  case 'url':
 
 
 
 
273
  $after_login_url = trim( $settings['specific_url'] );
 
274
  break;
275
  case 'omit':
276
  $after_login_url = '';
261
  } else {
262
  $http = 'https://';
263
  }
264
+ if (strpos($_SERVER['REQUEST_URI'], 'resetpass') !== false) {
265
+ $after_login_url = get_home_url();
266
+ }
267
+ else {
268
  $after_login_url = $http . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
269
+ }
270
  break;
271
  case 'home':
272
  $after_login_url = get_home_url();
275
  $after_login_url = get_admin_url();
276
  break;
277
  case 'url':
278
+ if (strpos($after_login_url, 'resetpass') !== false) {
279
+ $after_login_url = get_home_url();
280
+ }
281
+ else {
282
  $after_login_url = trim( $settings['specific_url'] );
283
+ }
284
  break;
285
  case 'omit':
286
  $after_login_url = '';
jonradio-private-site.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: My Private Site
4
  Plugin URI: http://zatzlabs.com/plugins/
5
  Description: Creates a Private Site by allowing only those logged on to view the WordPress web site. Settings select the initial destination after login.
6
- Version: 2.14.1
7
  Author: David Gewirtz
8
  Author URI: http://zatzlabs.com/plugins/
9
  License: GPLv2
3
  Plugin Name: My Private Site
4
  Plugin URI: http://zatzlabs.com/plugins/
5
  Description: Creates a Private Site by allowing only those logged on to view the WordPress web site. Settings select the initial destination after login.
6
+ Version: 2.14.2
7
  Author: David Gewirtz
8
  Author URI: http://zatzlabs.com/plugins/
9
  License: GPLv2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dgewirtz
3
  Donate link: http://zatzlabs.com/lab-notes/
4
  Tags: login, visibility, private, security, plugin, pages, page, posts, post
5
  Requires at least: 3.0
6
- Tested up to: 4.6
7
- Stable tag: 2.14.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,9 @@ At user request, to reduce clutter.
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 2.14.1 =
81
  * Minor support update
82
 
3
  Donate link: http://zatzlabs.com/lab-notes/
4
  Tags: login, visibility, private, security, plugin, pages, page, posts, post
5
  Requires at least: 3.0
6
+ Tested up to: 5.0
7
+ Stable tag: 2.14.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 2.14.2 =
81
+ * Minor fix for password reset. Thanks to user o2Xav.
82
+
83
  = 2.14.1 =
84
  * Minor support update
85