WP htaccess Control - Version 2.1.2

Version Description

(01/02/2011) = * Fix: fix on canonical url setting (thank you 8bitkid for pointing it out).

Download this release

Release Info

Developer dardna
Plugin Icon wp plugin WP htaccess Control
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wp-htaccess-control.php +3 -3
readme.txt CHANGED
@@ -5,8 +5,8 @@ Plugin URI: http://dardna.com/wp-htaccess-control
5
  Donate link:
6
  Tags: permalinks, permalink, author, htaccess, rewrite, redirect, admin, maintenance, pagination, category, category base, archive, archives
7
  Requires at least: 2.7
8
- Tested up to: 3.0.2
9
- Stable tag: 2.1.1
10
 
11
  Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
12
 
@@ -69,6 +69,9 @@ Removal of the category base is based on iDope's **WP No Category Base** but ext
69
 
70
  == Changelog ==
71
 
 
 
 
72
  = 2.1.1 (03/12/2010) =
73
  * *Fix:* small fix related to 2.1 and subcategories (thanks again for the report zamuta).
74
 
5
  Donate link:
6
  Tags: permalinks, permalink, author, htaccess, rewrite, redirect, admin, maintenance, pagination, category, category base, archive, archives
7
  Requires at least: 2.7
8
+ Tested up to: 3.0.4
9
+ Stable tag: 2.1.2
10
 
11
  Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
12
 
69
 
70
  == Changelog ==
71
 
72
+ = 2.1.2 (01/02/2011) =
73
+ * *Fix:* fix on canonical url setting (thank you 8bitkid for pointing it out).
74
+
75
  = 2.1.1 (03/12/2010) =
76
  * *Fix:* small fix related to 2.1 and subcategories (thanks again for the report zamuta).
77
 
wp-htaccess-control.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP htaccess Control
4
  Plugin URI: http://dardna.com/wp-htaccess-control
5
  Description: Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
6
- Version: 2.1.1
7
  Author: António Andrade
8
  Author URI: http://dardna.com
9
  */
@@ -295,7 +295,7 @@ if (!class_exists("WPhtc")) {
295
  update_option('siteurl',$siteurl);
296
  }
297
  $homeurl=get_option('home');
298
- if (!preg_match('/^http:\/\/www\./', $siteurl)) {
299
  $homeurl=str_replace("http://","http://www.",$homeurl);
300
  update_option('home',$homeurl);
301
  }
@@ -307,7 +307,7 @@ if (!class_exists("WPhtc")) {
307
  update_option('siteurl',$siteurl);
308
  }
309
  $homeurl=get_option('home');
310
- if (preg_match('/^http:\/\/www\./', $siteurl)) {
311
  $homeurl=str_replace("http://www.","http://",$homeurl);
312
  update_option('home',$homeurl);
313
  }
3
  Plugin Name: WP htaccess Control
4
  Plugin URI: http://dardna.com/wp-htaccess-control
5
  Description: Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
6
+ Version: 2.1.2
7
  Author: António Andrade
8
  Author URI: http://dardna.com
9
  */
295
  update_option('siteurl',$siteurl);
296
  }
297
  $homeurl=get_option('home');
298
+ if (!preg_match('/^http:\/\/www\./', $homeurl)) {
299
  $homeurl=str_replace("http://","http://www.",$homeurl);
300
  update_option('home',$homeurl);
301
  }
307
  update_option('siteurl',$siteurl);
308
  }
309
  $homeurl=get_option('home');
310
+ if (preg_match('/^http:\/\/www\./', $homeurl)) {
311
  $homeurl=str_replace("http://www.","http://",$homeurl);
312
  update_option('home',$homeurl);
313
  }