Plugin Directory

Changeset 339488


Ignore:
Timestamp:
02/01/2011 01:01:45 PM (15 years ago)
Author:
dardna
Message:

Fixed canonical url setting.

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

Legend:

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

    r318791 r339488  
    66Tags: permalinks, permalink, author, htaccess, rewrite, redirect, admin, maintenance, pagination, category, category base, archive, archives
    77Requires at least: 2.7
    8 Tested up to: 3.0.2
    9 Stable tag: 2.1.1
     8Tested up to: 3.0.4
     9Stable tag: 2.1.2
    1010
    1111Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
     
    6969
    7070== Changelog ==
     71
     72= 2.1.2 (01/02/2011) =
     73* *Fix:* fix on canonical url setting (thank you 8bitkid for pointing it out).
    7174
    7275= 2.1.1 (03/12/2010) =
  • wp-htaccess-control/trunk/wp-htaccess-control.php

    r318791 r339488  
    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.1.1
     6Version: 2.1.2
    77Author: António Andrade
    88Author URI: http://dardna.com
     
    296296                        }
    297297                    $homeurl=get_option('home');
    298                     if (!preg_match('/^http:\/\/www\./', $siteurl)) {
     298                    if (!preg_match('/^http:\/\/www\./', $homeurl)) {
    299299                        $homeurl=str_replace("http://","http://www.",$homeurl);
    300300                        update_option('home',$homeurl);
     
    308308                        }
    309309                    $homeurl=get_option('home');
    310                     if (preg_match('/^http:\/\/www\./', $siteurl)) {
     310                    if (preg_match('/^http:\/\/www\./', $homeurl)) {
    311311                        $homeurl=str_replace("http://www.","http://",$homeurl);
    312312                        update_option('home',$homeurl);
Note: See TracChangeset for help on using the changeset viewer.