Version Description
- Fix - Multisite 'Super Admin' users do not need assigned sites to access the network.
Download this release
Release Info
Developer | kevinvess |
Plugin | Force Login |
Version | 4.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.1
- readme.txt +8 -2
- wp-force-login.php +2 -2
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: kevinvess
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kevin%40vess%2eme&lc=US&item_name=Kevin%20Vess%20-%20WordPress¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: access, closed, force user login, hidden, login, password, privacy, private, protected, registered only, restricted
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Force Login is a simple lightweight plugin that requires visitors to log in to interact with the website.
|
@@ -104,6 +104,9 @@ add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
107 |
= 4.0 =
|
108 |
* Feature - Added exceptions for AJAX, Cron and WP-CLI requests.
|
109 |
* Fix - Only allow Multisite users access to their assigned sites.
|
@@ -139,6 +142,9 @@ add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
|
|
139 |
|
140 |
== Upgrade Notice ==
|
141 |
|
|
|
|
|
|
|
142 |
= 4.0 =
|
143 |
New feature: added exceptions for AJAX, Cron, and WP-CLI requests. Fix: Multisite users can only access their assigned sites.
|
144 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kevin%40vess%2eme&lc=US&item_name=Kevin%20Vess%20-%20WordPress¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: access, closed, force user login, hidden, login, password, privacy, private, protected, registered only, restricted
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 4.5
|
7 |
+
Stable tag: 4.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Force Login is a simple lightweight plugin that requires visitors to log in to interact with the website.
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
= 4.1 =
|
108 |
+
* Fix - Multisite 'Super Admin' users do not need assigned sites to access the network.
|
109 |
+
|
110 |
= 4.0 =
|
111 |
* Feature - Added exceptions for AJAX, Cron and WP-CLI requests.
|
112 |
* Fix - Only allow Multisite users access to their assigned sites.
|
142 |
|
143 |
== Upgrade Notice ==
|
144 |
|
145 |
+
= 4.1 =
|
146 |
+
Multisite users can only access their assigned sites, except 'Super Admin' users.
|
147 |
+
|
148 |
= 4.0 =
|
149 |
New feature: added exceptions for AJAX, Cron, and WP-CLI requests. Fix: Multisite users can only access their assigned sites.
|
150 |
|
wp-force-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Force Login
|
4 |
Plugin URI: http://vess.me/
|
5 |
Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on.
|
6 |
-
Version: 4.
|
7 |
Author: Kevin Vess
|
8 |
Author URI: http://vess.me/
|
9 |
License: GPLv2 or later
|
@@ -56,7 +56,7 @@ function v_forcelogin() {
|
|
56 |
// Only allow Multisite users access to their assigned sites
|
57 |
if ( function_exists('is_multisite') && is_multisite() ) {
|
58 |
global $current_user; get_currentuserinfo();
|
59 |
-
if ( !is_user_member_of_blog( $current_user->ID ) )
|
60 |
wp_die( __( "You're not authorized to access this site." ), __( get_option('blogname') . ' › Error' ) );
|
61 |
}
|
62 |
}
|
3 |
Plugin Name: Force Login
|
4 |
Plugin URI: http://vess.me/
|
5 |
Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on.
|
6 |
+
Version: 4.1
|
7 |
Author: Kevin Vess
|
8 |
Author URI: http://vess.me/
|
9 |
License: GPLv2 or later
|
56 |
// Only allow Multisite users access to their assigned sites
|
57 |
if ( function_exists('is_multisite') && is_multisite() ) {
|
58 |
global $current_user; get_currentuserinfo();
|
59 |
+
if ( !is_user_member_of_blog( $current_user->ID ) && !is_super_admin() )
|
60 |
wp_die( __( "You're not authorized to access this site." ), __( get_option('blogname') . ' › Error' ) );
|
61 |
}
|
62 |
}
|