Page Restrict - Version 1.7

Version Description

(2010-01-18) = * Fixed a bug that added slashes to quotes in the custom restriction message.

Download this release

Release Info

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

Code changes from version 1.6 to 1.7

Files changed (3) hide show
  1. inc/admin.php +2 -2
  2. pagerestrict.php +4 -4
  3. readme.txt +4 -1
inc/admin.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://sivel.net/wordpress/
5
  */
6
 
7
  //
8
- $pr_version = '1.6';
9
 
10
  // Full path and plugin basename of the main plugin file
11
  $pr_plugin_file = dirname ( dirname ( __FILE__ ) ) . '/pagerestrict.php';
@@ -80,7 +80,7 @@ function pr_admin_page () {
80
  $pr_method = $_POST['method'];
81
  $pr_options['method'] = $pr_method;
82
  $pr_options['version'] = pr_get_opt ( 'version' );
83
- $pr_message = $_POST['message'];
84
  $pr_options['message'] = $pr_message;
85
  if ( $_POST['loginform'] == 'true' )
86
  $pr_options['loginform'] = true;
5
  */
6
 
7
  //
8
+ $pr_version = '1.7';
9
 
10
  // Full path and plugin basename of the main plugin file
11
  $pr_plugin_file = dirname ( dirname ( __FILE__ ) ) . '/pagerestrict.php';
80
  $pr_method = $_POST['method'];
81
  $pr_options['method'] = $pr_method;
82
  $pr_options['version'] = pr_get_opt ( 'version' );
83
+ $pr_message = stripslashes($_POST['message']);
84
  $pr_options['message'] = $pr_message;
85
  if ( $_POST['loginform'] == 'true' )
86
  $pr_options['loginform'] = true;
pagerestrict.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Page Restrict
4
- Plugin URI: http://sivel.net/wordpress/
5
  Description: Restrict certain pages to logged in users
6
- Author: Matt Martz
7
- Author URI: http://sivel.net/
8
- Version: 1.6
9
 
10
  Copyright (c) 2008 Matt Martz (http://sivel.net)
11
  Page Restrict is released under the GNU Lesser General Public License (LGPL)
1
  <?php
2
  /*
3
  Plugin Name: Page Restrict
4
+ 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.7
9
 
10
  Copyright (c) 2008 Matt Martz (http://sivel.net)
11
  Page Restrict is released under the GNU Lesser General Public License (LGPL)
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.6
7
 
8
  Restrict certain pages to logged in users.
9
 
@@ -45,6 +45,9 @@ NOTE: See "Other Notes" for Upgrade and Usage Instructions as well as other pert
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = 1.6 (2009-03-12): =
49
  * Replaced while loop with foreach for display list of pages
50
  * Added meta box to write/edit pages page
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.7
7
 
8
  Restrict certain pages to logged in users.
9
 
45
 
46
  == Changelog ==
47
 
48
+ = 1.7 (2010-01-18) =
49
+ * Fixed a bug that added slashes to quotes in the custom restriction message.
50
+
51
  = 1.6 (2009-03-12): =
52
  * Replaced while loop with foreach for display list of pages
53
  * Added meta box to write/edit pages page