Plugin Directory

Changeset 365151


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

pre 2.2.3

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

Legend:

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

    r365139 r365151  
    7070
    7171== Changelog ==
     72
     73= 2.2.3 (26/03/2011) =
     74* *Fix:* Still fixing 2.2 canonical bug.
    7275
    7376= 2.2.2 (26/03/2011) =
  • wp-htaccess-control/trunk/wp-htaccess-control.php

    r365139 r365151  
    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.2
     6Version: 2.2.3
    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'])&&$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)){
    7374                return false;
    7475                }
     
    548549    add_filter('author_link',array($WPhtc,'wphtc_filter_author_link'));
    549550    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);
    551552    add_action('admin_menu', array($WPhtc,'configure_menu'));
    552553    add_action('sm_buildmap',array($WPhtc,'set_sm'));
Note: See TracChangeset for help on using the changeset viewer.