Version Description
- Fixed compatibility switch bug
Download this release
Release Info
Developer | dgewirtz |
Plugin | My Private Site |
Version | 3.0.9 |
Comparing to | |
See all releases |
Code changes from version 3.0.8 to 3.0.9
- admin/site-privacy.php +5 -7
- jonradio-private-site.php +1 -1
- readme.txt +4 -1
admin/site-privacy.php
CHANGED
@@ -149,18 +149,16 @@ function my_private_site_tab_site_privacy_process_buttons() {
|
|
149 |
if ( ! wp_verify_nonce( $_POST['jr_ps_button_site_privacy_save_nonce'], 'jr_ps_button_site_privacy_save' ) ) {
|
150 |
wp_die( 'Security violation detected. Access denied.', 'Security violation', array( 'response' => 403 ) );
|
151 |
}
|
|
|
|
|
152 |
if ( isset( $_POST['jr_ps_admin_site_privacy_enable'] ) ) {
|
153 |
$settings['private_site'] = true;
|
154 |
} else {
|
155 |
-
if ( ! wp_verify_nonce( $_POST['jr_ps_button_site_privacy_save_nonce'], 'jr_ps_button_site_privacy_save' ) ) {
|
156 |
-
wp_die( 'Security violation detected. Access denied.', 'Security violation', array( 'response' => 403 ) );
|
157 |
-
}
|
158 |
$settings['private_site'] = false;
|
159 |
}
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
}
|
164 |
$compatibility_mode = trim( sanitize_text_field( $_POST['jr_ps_admin_advanced_compatibility_mode']) );
|
165 |
$settings['compatibility_mode'] = $compatibility_mode;
|
166 |
}
|
149 |
if ( ! wp_verify_nonce( $_POST['jr_ps_button_site_privacy_save_nonce'], 'jr_ps_button_site_privacy_save' ) ) {
|
150 |
wp_die( 'Security violation detected. Access denied.', 'Security violation', array( 'response' => 403 ) );
|
151 |
}
|
152 |
+
// these just check for value existence
|
153 |
+
// phpcs:ignore WordPress.Security.NonceVerification
|
154 |
if ( isset( $_POST['jr_ps_admin_site_privacy_enable'] ) ) {
|
155 |
$settings['private_site'] = true;
|
156 |
} else {
|
|
|
|
|
|
|
157 |
$settings['private_site'] = false;
|
158 |
}
|
159 |
+
// these just check for value existence
|
160 |
+
// phpcs:ignore WordPress.Security.NonceVerification
|
161 |
+
if ( isset( $_POST['jr_ps_admin_advanced_compatibility_mode'] ) ) {
|
|
|
162 |
$compatibility_mode = trim( sanitize_text_field( $_POST['jr_ps_admin_advanced_compatibility_mode']) );
|
163 |
$settings['compatibility_mode'] = $compatibility_mode;
|
164 |
}
|
jonradio-private-site.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: My Private Site
|
4 |
Plugin URI: http://zatzlabs.com/plugins/
|
5 |
Description: Easily secure posts, pages, or your entire WordPress site by requiring visitors to login.
|
6 |
-
Version: 3.0.
|
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: Easily secure posts, pages, or your entire WordPress site by requiring visitors to login.
|
6 |
+
Version: 3.0.9
|
7 |
Author: David Gewirtz
|
8 |
Author URI: http://zatzlabs.com/plugins/
|
9 |
License: GPLv2
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://zatzlabs.com/lab-notes/
|
|
4 |
Tags: login, visibility, private, security, plugin, pages, page, posts, post
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,9 @@ Whenever you change your WordPress Permalinks (Settings-Permalinks in Admin pane
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
95 |
= 3.0.8 =
|
96 |
* Fixed some security bugs
|
97 |
|
4 |
Tags: login, visibility, private, security, plugin, pages, page, posts, post
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 3.0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 3.0.9 =
|
96 |
+
* Fixed compatibility switch bug
|
97 |
+
|
98 |
= 3.0.8 =
|
99 |
* Fixed some security bugs
|
100 |
|