Restricted Site Access - Version 5.0.1

Version Description

  • Does not block user activation page in network mode
Download this release

Release Info

Developer jakemgold
Plugin Icon 128x128 Restricted Site Access
Version 5.0.1
Comparing to
See all releases

Code changes from version 5.0 to 5.0.1

Files changed (2) hide show
  1. readme.txt +5 -2
  2. restricted_site_access.php +2 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jakemgold, rcbth, 10up, thinkoomph
3
  Donate link: http://10up.com/plugins/restricted-site-access-wordpress/
4
  Tags: privacy, restricted, restrict, privacy, limited, permissions, security, block
5
  Requires at least: 3.4
6
- Tested up to: 3.5
7
- Stable tag: 5.0
8
 
9
  Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors.
10
 
@@ -60,6 +60,9 @@ Restricted Site Access is not meant to be a top secret data safe, but simply a r
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 5.0 =
64
  * WordPress 3.5 compatibility (3.5 eliminated the Privacy settings panel in favor of a refreshed Reading panel)
65
  * Real validation (on the fly and on save) for IP address entries
3
  Donate link: http://10up.com/plugins/restricted-site-access-wordpress/
4
  Tags: privacy, restricted, restrict, privacy, limited, permissions, security, block
5
  Requires at least: 3.4
6
+ Tested up to: 3.5.1
7
+ Stable tag: 5.0.1
8
 
9
  Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors.
10
 
60
 
61
  == Changelog ==
62
 
63
+ = 5.0.1 =
64
+ * Does not block user activation page in network mode
65
+
66
  = 5.0 =
67
  * WordPress 3.5 compatibility (3.5 eliminated the Privacy settings panel in favor of a refreshed Reading panel)
68
  * Real validation (on the fly and on save) for IP address entries
restricted_site_access.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Restricted Site Access
4
  Plugin URI: http://10up.com/plugins/restricted-site-access-wordpress/
5
  Description: <strong>Limit access your site</strong> to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message or page. <strong>Powerful control over redirection</strong>, including <strong>SEO friendly redirect headers</strong>. Great solution for Extranets, publicly hosted Intranets, or parallel development sites.
6
- Version: 5.0
7
  Author: Jake Goldman, 10up, Oomph
8
  Author URI: http://10up.com
9
  License: GPLv2 or later
@@ -86,7 +86,7 @@ class Restricted_Site_Access {
86
  public function restrict_access( $wp ) {
87
  remove_action( 'parse_request', array( $this, 'restrict_access' ), 1 ); // only need it the first time
88
 
89
- $is_restricted = ( is_admin() || is_user_logged_in() || get_option( 'blog_public' ) != 2 ) ? false : true;
90
  if ( apply_filters( 'restricted_site_access_is_restricted', $is_restricted, $wp ) === false )
91
  return;
92
 
3
  Plugin Name: Restricted Site Access
4
  Plugin URI: http://10up.com/plugins/restricted-site-access-wordpress/
5
  Description: <strong>Limit access your site</strong> to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message or page. <strong>Powerful control over redirection</strong>, including <strong>SEO friendly redirect headers</strong>. Great solution for Extranets, publicly hosted Intranets, or parallel development sites.
6
+ Version: 5.0.1
7
  Author: Jake Goldman, 10up, Oomph
8
  Author URI: http://10up.com
9
  License: GPLv2 or later
86
  public function restrict_access( $wp ) {
87
  remove_action( 'parse_request', array( $this, 'restrict_access' ), 1 ); // only need it the first time
88
 
89
+ $is_restricted = ( is_admin() || is_user_logged_in() || get_option( 'blog_public' ) != 2 || ( defined( 'WP_INSTALLING' ) && isset( $_GET['key'] ) ) ) ? false : true;
90
  if ( apply_filters( 'restricted_site_access_is_restricted', $is_restricted, $wp ) === false )
91
  return;
92