Changeset 365151
- Timestamp:
- 03/26/2011 03:09:27 PM (15 years ago)
- Location:
- wp-htaccess-control/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-htaccess-control.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-htaccess-control/trunk/readme.txt
r365139 r365151 70 70 71 71 == Changelog == 72 73 = 2.2.3 (26/03/2011) = 74 * *Fix:* Still fixing 2.2 canonical bug. 72 75 73 76 = 2.2.2 (26/03/2011) = -
wp-htaccess-control/trunk/wp-htaccess-control.php
r365139 r365151 4 4 Plugin URI: http://dardna.com/wp-htaccess-control 5 5 Description: Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress. 6 Version: 2.2. 26 Version: 2.2.3 7 7 Author: António Andrade 8 8 Author URI: http://dardna.com … … 69 69 # Disable canonical redirection on urls using custom pagination permalink 70 70 function wphtc_filter_redirect_canonical($requested_url){ 71 $WPhtc_data=get_option('WPhtc_data'); 72 if(isset($WPhtc_data['cpp'])&&$WPhtc_data['cpp']!=''&&get_query_var('paged') > 1&&strpos($requested_url,urlencode($WPhtc_data['cpp']))){ 71 global $wp; 72 $WPhtc_data=get_option('WPhtc_data'); 73 if(isset($WPhtc_data['cpp'])&&$WPhtc_data['cpp']!=''&&get_query_var('paged') > 1&&preg_match("/".urlencode($WPhtc_data['cpp'])."/",$wp->request)){ 73 74 return false; 74 75 } … … 548 549 add_filter('author_link',array($WPhtc,'wphtc_filter_author_link')); 549 550 add_filter('get_pagenum_link',array($WPhtc,'wphtc_filter_get_pagenum_link')); 550 add_filter('redirect_canonical',array($WPhtc,'wphtc_filter_redirect_canonical'),10, 4);551 add_filter('redirect_canonical',array($WPhtc,'wphtc_filter_redirect_canonical'),10,10); 551 552 add_action('admin_menu', array($WPhtc,'configure_menu')); 552 553 add_action('sm_buildmap',array($WPhtc,'set_sm'));
Note: See TracChangeset
for help on using the changeset viewer.