Plugin Directory

Changeset 365135


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

2.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-htaccess-control/trunk/wp-htaccess-control.php

    r364744 r365135  
    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
     6Version: 2.2.1
    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');
     71            /*$WPhtc_data=get_option('WPhtc_data');
    7272            if(isset($WPhtc_data['cpp'])&&preg_match($WPhtc_data['cpp'],$requested_url)){
    7373                return false;
     
    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;
    7785                }
    7886            }
Note: See TracChangeset for help on using the changeset viewer.