Version Description
- Added code to NOT affect the title of nav menu items. Should work on most installations.
Download this release
Release Info
| Developer | theandystratton |
| Plugin | |
| Version | 2.5.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.5.0 to 2.5.1
- pagerestrict.php +13 -2
- readme.txt +4 -1
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: 2.5.
|
| 9 |
|
| 10 |
Page Restrict is released under the GNU Lesser General Public License (LGPL)
|
| 11 |
http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
@@ -241,4 +241,15 @@ function pr_authenticate( $error, $user, $pass )
|
|
| 241 |
\do_action( 'wp_login_failed', $user, $error );
|
| 242 |
|
| 243 |
return $error;
|
| 244 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
Description: Restrict certain pages to logged in users
|
| 6 |
Author: Matt Martz & Andy Stratton
|
| 7 |
Author URI: http://theandystratton.com
|
| 8 |
+
Version: 2.5.1
|
| 9 |
|
| 10 |
Page Restrict is released under the GNU Lesser General Public License (LGPL)
|
| 11 |
http://www.gnu.org/licenses/lgpl-3.0.txt
|
| 241 |
\do_action( 'wp_login_failed', $user, $error );
|
| 242 |
|
| 243 |
return $error;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
// avoid nav menu title filtering:
|
| 247 |
+
\add_filter( 'pre_wp_nav_menu', function( $values ){
|
| 248 |
+
\remove_filter( 'the_title' , 'pr_page_restrict_title' , 50 );
|
| 249 |
+
return $values;
|
| 250 |
+
});
|
| 251 |
+
|
| 252 |
+
\add_filter( 'wp_nav_menu_items', function( $values ){
|
| 253 |
+
\add_filter( 'the_title' , 'pr_page_restrict_title' , 50 );
|
| 254 |
+
return $values;
|
| 255 |
+
});
|
readme.txt
CHANGED
|
@@ -47,7 +47,10 @@ NOTE: See "Other Notes" for Upgrade and Usage Instructions as well as other pert
|
|
| 47 |
|
| 48 |
== Changelog ==
|
| 49 |
|
| 50 |
-
= 2.
|
|
|
|
|
|
|
|
|
|
| 51 |
* Adds the ability to restrict the page title and customize, with token replacement for the original title.
|
| 52 |
|
| 53 |
= 2.4.0 =
|
| 47 |
|
| 48 |
== Changelog ==
|
| 49 |
|
| 50 |
+
= 2.5.1 =
|
| 51 |
+
* Added code to NOT affect the title of nav menu items. Should work on most installations.
|
| 52 |
+
|
| 53 |
+
= 2.5.0 =
|
| 54 |
* Adds the ability to restrict the page title and customize, with token replacement for the original title.
|
| 55 |
|
| 56 |
= 2.4.0 =
|
