Version Description
(12/03/2010) * Clean up on debug left over on 1.4 for url canonization.
Download this release
Release Info
Developer | andrad |
Plugin | WP htaccess Control |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.4.1
- readme.txt +8 -1
- wp-htaccess-control-ui.php +1 -1
- wp-htaccess-control.php +2 -3
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link:
|
|
6 |
Tags: permalinks, permalink, author, htaccess, rewrite, redirect
|
7 |
Requires at least: 2.7
|
8 |
Tested up to: 2.9.2
|
9 |
-
Stable tag: 1.4
|
10 |
|
11 |
Provides an interface to add custom htaccess rules to the htaccess file generated by Wordpress and customisation of the Author Permalink Base.
|
12 |
|
@@ -48,6 +48,10 @@ Suggestions are of course very welcome and please report any bugs found!
|
|
48 |
1. Administration page (as of v.1.4)
|
49 |
|
50 |
== Changelog ==
|
|
|
|
|
|
|
|
|
51 |
= 1.4 =
|
52 |
(12/03/2010)
|
53 |
* Added "Suggested htaccess" features;
|
@@ -93,6 +97,9 @@ Suggestions are of course very welcome and please report any bugs found!
|
|
93 |
* Initial release (poor interface although working).
|
94 |
|
95 |
== Upgrade Notice ==
|
|
|
|
|
|
|
96 |
= 1.4 =
|
97 |
* Features added.
|
98 |
|
6 |
Tags: permalinks, permalink, author, htaccess, rewrite, redirect
|
7 |
Requires at least: 2.7
|
8 |
Tested up to: 2.9.2
|
9 |
+
Stable tag: 1.4.1
|
10 |
|
11 |
Provides an interface to add custom htaccess rules to the htaccess file generated by Wordpress and customisation of the Author Permalink Base.
|
12 |
|
48 |
1. Administration page (as of v.1.4)
|
49 |
|
50 |
== Changelog ==
|
51 |
+
= 1.4.1 =
|
52 |
+
(12/03/2010)
|
53 |
+
* Clean up on debug left over on 1.4 for url canonization.
|
54 |
+
|
55 |
= 1.4 =
|
56 |
(12/03/2010)
|
57 |
* Added "Suggested htaccess" features;
|
97 |
* Initial release (poor interface although working).
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
+
= 1.4.1 =
|
101 |
+
* Clean up on debug left over from 1.4 for url canonization.
|
102 |
+
|
103 |
= 1.4 =
|
104 |
* Features added.
|
105 |
|
wp-htaccess-control-ui.php
CHANGED
@@ -181,5 +181,5 @@ $WPhtc_data=get_option('WPhtc_data');
|
|
181 |
</p>
|
182 |
</div>
|
183 |
</div>
|
184 |
-
<p id="wphtc-footer"><small><a href="http://dardna.com/wp-htaccess-control" title="Visit WP htaccess Control page at dardna.com">WP htaccess Control</a> by <a href="http://dardna.com" title="Visit dardna.com">António Andrade</a
|
185 |
</div>
|
181 |
</p>
|
182 |
</div>
|
183 |
</div>
|
184 |
+
<p id="wphtc-footer"><small><a href="http://dardna.com/wp-htaccess-control" title="Visit WP htaccess Control page at dardna.com">WP htaccess Control</a> by <a href="http://dardna.com" title="Visit dardna.com">António Andrade</a></p>
|
185 |
</div>
|
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: Provides an interface to add custom htaccess rules to the htaccess file generated by wordpress. Also provides customisation of the Author Permalink Base.
|
6 |
-
Version: 1.4
|
7 |
Author: António Andrade
|
8 |
Author URI: http://dardna.com
|
9 |
*/
|
@@ -137,7 +137,6 @@ if (!class_exists("WPhtc")) {
|
|
137 |
}
|
138 |
if($WPhtc_data['canon']){
|
139 |
$url=str_ireplace(array("http://","www."),"",get_bloginfo("url"));
|
140 |
-
$url="sub.dom.com";
|
141 |
$domain=explode("/",$url);
|
142 |
$escaped_domain=str_ireplace(".","\.",$domain[0]);
|
143 |
if($WPhtc_data['canon']=='www'){
|
@@ -195,7 +194,7 @@ if (!class_exists("WPhtc")) {
|
|
195 |
# if reseting everything just delete the option array
|
196 |
case 'reset_rules':
|
197 |
delete_option('WPhtc_data');
|
198 |
-
$echo.="All rules
|
199 |
global $wp_rewrite;
|
200 |
$wp_rewrite->flush_rules();
|
201 |
break;
|
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.
|
6 |
+
Version: 1.4.1
|
7 |
Author: António Andrade
|
8 |
Author URI: http://dardna.com
|
9 |
*/
|
137 |
}
|
138 |
if($WPhtc_data['canon']){
|
139 |
$url=str_ireplace(array("http://","www."),"",get_bloginfo("url"));
|
|
|
140 |
$domain=explode("/",$url);
|
141 |
$escaped_domain=str_ireplace(".","\.",$domain[0]);
|
142 |
if($WPhtc_data['canon']=='www'){
|
194 |
# if reseting everything just delete the option array
|
195 |
case 'reset_rules':
|
196 |
delete_option('WPhtc_data');
|
197 |
+
$echo.="All rules reset.";
|
198 |
global $wp_rewrite;
|
199 |
$wp_rewrite->flush_rules();
|
200 |
break;
|