Version Description
(28/01/2013) =
- Fix: empty categories should also have the proper template instead of a 404.
Download this release
Release Info
Developer | antonioandra.de |
Plugin | WP htaccess Control |
Version | 3.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.3.2
- readme.txt +4 -0
- wp-htaccess-control.php +2 -24
readme.txt
CHANGED
@@ -82,6 +82,10 @@ For WordPress versions prior to 3.4 use the plugin version 2.7.2.1.
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
|
|
85 |
= 3.3.1 (28/01/2013) =
|
86 |
|
87 |
* Tested under 3.5.1.
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 3.3.2 (28/01/2013) =
|
86 |
+
|
87 |
+
* Fix: empty categories should also have the proper template instead of a 404.
|
88 |
+
|
89 |
= 3.3.1 (28/01/2013) =
|
90 |
|
91 |
* Tested under 3.5.1.
|
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: 3.3.
|
7 |
Author: António Andrade
|
8 |
Author URI: http://antonioandra.de
|
9 |
*/
|
@@ -103,28 +103,6 @@ if (!class_exists("WPhtc")) {
|
|
103 |
return $link;
|
104 |
}
|
105 |
function check_first_run(){
|
106 |
-
|
107 |
-
|
108 |
-
# MIGRATE OPTIONS
|
109 |
-
|
110 |
-
// deprecating old category base removal
|
111 |
-
if($this->data['remove_category_base']){
|
112 |
-
unset($this->data['remove_category_base']);
|
113 |
-
$this->data['remove_taxonomy_base']['category']=true;
|
114 |
-
}
|
115 |
-
// deprecating old category archive
|
116 |
-
if($this->data['category_archives']){
|
117 |
-
unset($this->data['category_archives']);
|
118 |
-
$this->data['create_archive']['category']=true;
|
119 |
-
}
|
120 |
-
// deprecating old tag archive
|
121 |
-
if($this->data['tag_archives']){
|
122 |
-
unset($this->data['tag_archives']);
|
123 |
-
$this->data['create_archive']['post_tag']=true;
|
124 |
-
}
|
125 |
-
if($this->data['remove_category_base'] || $this->data['category_archives'] || $this->data['tag_archives']){
|
126 |
-
update_option('WPhtc_data',$this->data);
|
127 |
-
}
|
128 |
|
129 |
# flush rules to get some data filled on first usage
|
130 |
if(!isset($this->data['htaccess_original'])){
|
@@ -192,7 +170,7 @@ if (!class_exists("WPhtc")) {
|
|
192 |
if($this->data['create_archive'] || $this->data['remove_taxonomy_base']){
|
193 |
foreach (get_taxonomies('','objects') as $taxonomy){
|
194 |
if(!$taxonomy->rewrite || ( !$this->data['remove_taxonomy_base'][$taxonomy->name] && !$this->data['create_archive'][$taxonomy->name] )){continue;}
|
195 |
-
$terms=get_terms($taxonomy->name);
|
196 |
foreach($terms as $term){
|
197 |
$base=$this->data['remove_taxonomy_base'][$taxonomy->name]?"":$taxonomy->rewrite->slug."/";
|
198 |
if($term->parent!=0 && !$this->data['remove_hierarchy']){
|
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: 3.3.2
|
7 |
Author: António Andrade
|
8 |
Author URI: http://antonioandra.de
|
9 |
*/
|
103 |
return $link;
|
104 |
}
|
105 |
function check_first_run(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
# flush rules to get some data filled on first usage
|
108 |
if(!isset($this->data['htaccess_original'])){
|
170 |
if($this->data['create_archive'] || $this->data['remove_taxonomy_base']){
|
171 |
foreach (get_taxonomies('','objects') as $taxonomy){
|
172 |
if(!$taxonomy->rewrite || ( !$this->data['remove_taxonomy_base'][$taxonomy->name] && !$this->data['create_archive'][$taxonomy->name] )){continue;}
|
173 |
+
$terms=get_terms($taxonomy->name, array("hide_empty"=>false));
|
174 |
foreach($terms as $term){
|
175 |
$base=$this->data['remove_taxonomy_base'][$taxonomy->name]?"":$taxonomy->rewrite->slug."/";
|
176 |
if($term->parent!=0 && !$this->data['remove_hierarchy']){
|