Page Restrict - Version 1.85

Version Description

(2010-02-15) = * Fixed bug where choosing the "selected" restriction method would result in all pages being restricted if no pages are checked in the plugin settings.

Download this release

Release Info

Developer theandystratton
Plugin Icon wp plugin Page Restrict
Version 1.85
Comparing to
See all releases

Code changes from version 1.8 to 1.85

Files changed (2) hide show
  1. pagerestrict.php +2 -2
  2. readme.txt +5 -2
pagerestrict.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://theandystratton.com/pagerestrict
5
  Description: Restrict certain pages to logged in users
6
  Author: Matt Martz & Andy Stratton
7
  Author URI: http://theandystratton.com
8
- Version: 1.8
9
 
10
  Copyright (c) 2008 Matt Martz (http://sivel.net)
11
  Page Restrict is released under the GNU Lesser General Public License (LGPL)
@@ -37,7 +37,7 @@ function pr_no_cache_headers () {
37
  function pr_page_restrict ( $pr_page_content ) {
38
  global $user_ID, $post;
39
  get_currentuserinfo ();
40
- if ( ! $user_ID && is_array ( pr_get_opt ( 'pages' ) ) ) :
41
  if ( ( ( is_page ( pr_get_opt ( 'pages' ) ) ) && ( pr_get_opt ( 'method' ) != 'none' ) ) || ( ( is_page () ) && ( pr_get_opt ( 'method' ) == 'all' ) ) ):
42
  $pr_page_content = '
43
  <p>' . pr_get_opt ( 'message' ) . '</p>';
5
  Description: Restrict certain pages to logged in users
6
  Author: Matt Martz & Andy Stratton
7
  Author URI: http://theandystratton.com
8
+ Version: 1.85
9
 
10
  Copyright (c) 2008 Matt Martz (http://sivel.net)
11
  Page Restrict is released under the GNU Lesser General Public License (LGPL)
37
  function pr_page_restrict ( $pr_page_content ) {
38
  global $user_ID, $post;
39
  get_currentuserinfo ();
40
+ if ( ! $user_ID && is_array ( pr_get_opt ( 'pages' ) ) && count ( pr_get_opt( 'pages' ) ) > 0 ) :
41
  if ( ( ( is_page ( pr_get_opt ( 'pages' ) ) ) && ( pr_get_opt ( 'method' ) != 'none' ) ) || ( ( is_page () ) && ( pr_get_opt ( 'method' ) == 'all' ) ) ):
42
  $pr_page_content = '
43
  <p>' . pr_get_opt ( 'message' ) . '</p>';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: theandystratton, sivel
3
  Tags: pages, page, restrict, restriction, logged in, cms
4
  Requires at least: 2.6
5
  Tested up to: 2.9
6
- Stable tag: 1.8
7
 
8
  Restrict certain pages to logged in users.
9
 
@@ -45,7 +45,10 @@ NOTE: See "Other Notes" for Upgrade and Usage Instructions as well as other pert
45
 
46
  == Changelog ==
47
 
48
- = 1.7 (2010-02-12) =
 
 
 
49
  * Changed URL's to wp-login.php to use get_bloginfo('wpurl') instead of get_bloginfo('url') to ensure proper redirection when users install files outside of the site's document root.
50
 
51
  = 1.7 (2010-01-18) =
3
  Tags: pages, page, restrict, restriction, logged in, cms
4
  Requires at least: 2.6
5
  Tested up to: 2.9
6
+ Stable tag: 1.85
7
 
8
  Restrict certain pages to logged in users.
9
 
45
 
46
  == Changelog ==
47
 
48
+ = 1.85 (2010-02-15) =
49
+ * Fixed bug where choosing the "selected" restriction method would result in all pages being restricted if no pages are checked in the plugin settings.
50
+
51
+ = 1.8 (2010-02-12) =
52
  * Changed URL's to wp-login.php to use get_bloginfo('wpurl') instead of get_bloginfo('url') to ensure proper redirection when users install files outside of the site's document root.
53
 
54
  = 1.7 (2010-01-18) =