Changeset 365135
- Timestamp:
- 03/26/2011 02:21:11 PM (15 years ago)
- File:
-
- 1 edited
-
wp-htaccess-control/trunk/wp-htaccess-control.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-htaccess-control/trunk/wp-htaccess-control.php
r364744 r365135 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 6 Version: 2.2.1 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');71 /*$WPhtc_data=get_option('WPhtc_data'); 72 72 if(isset($WPhtc_data['cpp'])&&preg_match($WPhtc_data['cpp'],$requested_url)){ 73 73 return false; … … 75 75 else{ 76 76 return $requested_url; 77 }*/ 78 $WPhtc_data=get_option('WPhtc_data'); 79 return false; 80 if(isset($WPhtc_data['cpp'])&&$WPhtc_data['cpp']!=''&&get_query_var('paged') > 1&&strpos($requested_url,urlencode($WPhtc_data['cpp']))){ 81 return false; 82 } 83 else{ 84 return $redirect_url; 77 85 } 78 86 }
Note: See TracChangeset
for help on using the changeset viewer.