Changeset 365139
- Timestamp:
- 03/26/2011 02:33:15 PM (15 years ago)
- Location:
- wp-htaccess-control/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-htaccess-control.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-htaccess-control/trunk/readme.txt
r365126 r365139 7 7 Requires at least: 2.7 8 8 Tested up to: 3.1 9 Stable tag: 2. 1.29 Stable tag: 2.2.2 10 10 11 11 Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress. … … 70 70 71 71 == Changelog == 72 73 = 2.2.2 (26/03/2011) = 74 * *Fix:* 2.2 canonical bug fix resulted in errors which sould now be fixed. 75 76 = 2.2.1 (26/03/2011) = 77 * Reverted stable version to 2.1.2. 72 78 73 79 = 2.2 (25/03/2011) = -
wp-htaccess-control/trunk/wp-htaccess-control.php
r365135 r365139 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. 16 Version: 2.2.2 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'])&& preg_match($WPhtc_data['cpp'],$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']))){ 73 73 return false; 74 74 } 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;85 77 } 86 78 }
Note: See TracChangeset
for help on using the changeset viewer.