Plugin Directory

Changeset 365139


Ignore:
Timestamp:
03/26/2011 02:33:15 PM (15 years ago)
Author:
dardna
Message:

Canonical bug fix.

Location:
wp-htaccess-control/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-htaccess-control/trunk/readme.txt

    r365126 r365139  
    77Requires at least: 2.7
    88Tested up to: 3.1
    9 Stable tag: 2.1.2
     9Stable tag: 2.2.2
    1010
    1111Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
     
    7070
    7171== 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.
    7278
    7379= 2.2 (25/03/2011) =
  • wp-htaccess-control/trunk/wp-htaccess-control.php

    r365135 r365139  
    44Plugin URI: http://dardna.com/wp-htaccess-control
    55Description: Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
    6 Version: 2.2.1
     6Version: 2.2.2
    77Author: António Andrade
    88Author URI: http://dardna.com
     
    6969        # Disable canonical redirection on urls using custom pagination permalink
    7070        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']))){
    7373                return false;
    7474                }
    7575            else{
    7676                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;
    8577                }
    8678            }
Note: See TracChangeset for help on using the changeset viewer.