Changeset 2500482
- Timestamp:
- 03/21/2021 05:00:18 PM (5 years ago)
- Location:
- pagerestrict
- Files:
-
- 2 edited
- 4 copied
-
tags/2.5.1 (copied) (copied from pagerestrict/trunk)
-
tags/2.5.1/inc/admin.php (copied) (copied from pagerestrict/trunk/inc/admin.php)
-
tags/2.5.1/pagerestrict.php (copied) (copied from pagerestrict/trunk/pagerestrict.php) (2 diffs)
-
tags/2.5.1/readme.txt (copied) (copied from pagerestrict/trunk/readme.txt) (1 diff)
-
trunk/pagerestrict.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pagerestrict/tags/2.5.1/pagerestrict.php
r2500467 r2500482 6 6 Author: Matt Martz & Andy Stratton 7 7 Author URI: http://theandystratton.com 8 Version: 2.5. 08 Version: 2.5.1 9 9 10 10 Page Restrict is released under the GNU Lesser General Public License (LGPL) … … 243 243 return $error; 244 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 }); -
pagerestrict/tags/2.5.1/readme.txt
r2500467 r2500482 48 48 == Changelog == 49 49 50 = 2.4.0 = 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 = 51 54 * Adds the ability to restrict the page title and customize, with token replacement for the original title. 52 55 -
pagerestrict/trunk/pagerestrict.php
r2500467 r2500482 6 6 Author: Matt Martz & Andy Stratton 7 7 Author URI: http://theandystratton.com 8 Version: 2.5. 08 Version: 2.5.1 9 9 10 10 Page Restrict is released under the GNU Lesser General Public License (LGPL) … … 243 243 return $error; 244 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 }); -
pagerestrict/trunk/readme.txt
r2500467 r2500482 48 48 == Changelog == 49 49 50 = 2.4.0 = 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 = 51 54 * Adds the ability to restrict the page title and customize, with token replacement for the original title. 52 55
Note: See TracChangeset
for help on using the changeset viewer.