WP htaccess Control - Version 2.1.1

Version Description

(03/12/2010) = * Fix: small fix related to 2.1 and subcategories (thanks again for the report zamuta).

Download this release

Release Info

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

Code changes from version 2.1 to 2.1.1

Files changed (2) hide show
  1. readme.txt +11 -6
  2. wp-htaccess-control.php +4 -4
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.1
9
- Stable tag: 2.1
10
 
11
  Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
12
 
@@ -21,7 +21,7 @@ Despite the name, many of the options now present on this plugin do not use the
21
  * Removing the category base;
22
  * Customizing the Author Permalink Base;
23
  * Customizing Paginated Permalinks (translate the "page" word on permalinks to your own language);
24
- * Category, Author and Tag based archives (ex: *http://your-site.com/category/stories/2010/12*, *http://your-site.com/author/admin/2010/12/page/2* and *http://your-site.com/tag/wordpress/2010/12*), this will also work if you've removed the category base;
25
  * Maintenance mode.
26
 
27
  **Easy to use "Suggested htaccess" rules:**
@@ -42,8 +42,6 @@ Despite the name, many of the options now present on this plugin do not use the
42
 
43
  **Translated to:** pt_BR and pt_PT. (POT file is included, translations are welcome)
44
 
45
- Removal of the category base is based on iDope's **WP No Category Base** but extended so that it works with category archives (ie.: *http://example.com/my-category/2010/12*)
46
-
47
  == Installation ==
48
 
49
  1. Download **WP htaccess Control**;
@@ -65,14 +63,21 @@ Suggestions are welcome and please report any bugs found!
65
 
66
  I still haven't tested this under **Wordpress multisite**, issues have however been reported.
67
 
 
 
 
 
68
  == Changelog ==
69
 
 
 
 
70
  = 2.1 (02/12/2010) =
71
  * *Fix:* fixed "customization" of urls using cyrillic alphabet and other characters generally not safe (thank you for the report zamuta).
72
 
73
  = 2.0 (27/11/2010) =
74
  * *Feature:* removal of the category base;
75
- * *Feature:* archives for categories with no base (ie.: "http://example.com/my-category/2010/12") (again, good point webakimbo).
76
 
77
  = 1.9.1 (22/10/2010) =
78
  * *Feature:* adding "Author and Tag based archives".
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
 
21
  * Removing the category base;
22
  * Customizing the Author Permalink Base;
23
  * Customizing Paginated Permalinks (translate the "page" word on permalinks to your own language);
24
+ * Category, Author and Tag based archives (ex: *"http://your-site.com/category/stories/2010/12"*, *"http://your-site.com/author/admin/2010/12/page/2"* and *"http://your-site.com/tag/wordpress/2010/12"*), this will also work if you've removed the category base;
25
  * Maintenance mode.
26
 
27
  **Easy to use "Suggested htaccess" rules:**
42
 
43
  **Translated to:** pt_BR and pt_PT. (POT file is included, translations are welcome)
44
 
 
 
45
  == Installation ==
46
 
47
  1. Download **WP htaccess Control**;
63
 
64
  I still haven't tested this under **Wordpress multisite**, issues have however been reported.
65
 
66
+ == Additional Credit ==
67
+
68
+ Removal of the category base is based on iDope's **WP No Category Base** but extended so that it works with category archives (ie.: *"http://example.com/my-category/2010/12"*)
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
+
75
  = 2.1 (02/12/2010) =
76
  * *Fix:* fixed "customization" of urls using cyrillic alphabet and other characters generally not safe (thank you for the report zamuta).
77
 
78
  = 2.0 (27/11/2010) =
79
  * *Feature:* removal of the category base;
80
+ * *Feature:* archives for categories with no base (ie.: *"http://example.com/my-category/2010/12"*) (again, good point webakimbo).
81
 
82
  = 1.9.1 (22/10/2010) =
83
  * *Feature:* adding "Author and Tag based archives".
wp-htaccess-control.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: WP htaccess Control
4
  Plugin URI: http://dardna.com/wp-htaccess-control
5
- Description: Provides an interface to add custom htaccess rules to the htaccess file generated by wordpress. Also provides customisation of the Author Permalink Base and of Paginated Permalinks.
6
- Version: 2.1
7
  Author: António Andrade
8
  Author URI: http://dardna.com
9
  */
@@ -92,7 +92,7 @@ if (!class_exists("WPhtc")) {
92
  $category->parent = 0;
93
  }
94
  elseif ($category->parent != 0 ){
95
- $category_nicename = get_category_parents( $category->parent, false, '/', true ) . $category_nicename;
96
  }
97
  $new_rules = array( '('.$category_nicename.')/([0-9]{4})/?$' => 'index.php?category_name=$matches[1]&year=$matches[2]',
98
  '('.$category_nicename.')/([0-9]{4})/'.$page_base.'/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&year=$matches[2]&paged=$matches[3]',
@@ -375,7 +375,7 @@ if (!class_exists("WPhtc")) {
375
  $category->parent = 0;
376
  }
377
  elseif ($category->parent != 0 ){
378
- $category_nicename = get_category_parents( $category->parent, false, '/', true ) . $category_nicename;
379
  }
380
  $category_rewrite['('.$category_nicename.')/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$'] = 'index.php?category_name=$matches[1]&feed=$matches[2]';
381
  $category_rewrite['('.$category_nicename.')/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&paged=$matches[2]';
2
  /*
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
  */
92
  $category->parent = 0;
93
  }
94
  elseif ($category->parent != 0 ){
95
+ $category_nicename = urldecode(get_category_parents( $category->parent, false, '/', true )) . $category_nicename;
96
  }
97
  $new_rules = array( '('.$category_nicename.')/([0-9]{4})/?$' => 'index.php?category_name=$matches[1]&year=$matches[2]',
98
  '('.$category_nicename.')/([0-9]{4})/'.$page_base.'/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&year=$matches[2]&paged=$matches[3]',
375
  $category->parent = 0;
376
  }
377
  elseif ($category->parent != 0 ){
378
+ $category_nicename = urldecode(get_category_parents( $category->parent, false, '/', true )) . $category_nicename;
379
  }
380
  $category_rewrite['('.$category_nicename.')/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$'] = 'index.php?category_name=$matches[1]&feed=$matches[2]';
381
  $category_rewrite['('.$category_nicename.')/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&paged=$matches[2]';