Version Description
(26/03/2011) = * Fix: 2.2 canonical bug fix resulted in errors which sould now be fixed.
Download this release
Release Info
Developer | dardna |
Plugin | WP htaccess Control |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.2.2
- readme.txt +10 -3
- wp-htaccess-control.php +3 -3
readme.txt
CHANGED
@@ -6,7 +6,7 @@ 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.1
|
9 |
-
Stable tag: 2.2
|
10 |
|
11 |
Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
|
12 |
|
@@ -70,9 +70,16 @@ Removal of the category base is based on iDope's **WP No Category Base** but ext
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
-
= 2.
|
74 |
-
* *
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
* *Fix:* fixed a long time known canonical redirection bug where links like "/?p=55" wouldn't redirect to "/post-slug" (causing duplicated content).
|
|
|
76 |
|
77 |
= 2.1.2 (01/02/2011) =
|
78 |
* *Fix:* fix on canonical url setting (thank you 8bitkid for pointing it out).
|
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.1
|
9 |
+
Stable tag: 2.2.2
|
10 |
|
11 |
Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
|
12 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 2.2.2 (26/03/2011) =
|
74 |
+
* *Fix:* 2.2 canonical bug fix resulted in errors which sould now be fixed.
|
75 |
+
|
76 |
+
= 2.2.1 (26/03/2011) =
|
77 |
+
* Reverted stable version to 2.1.2.
|
78 |
+
|
79 |
+
= 2.2 (25/03/2011) =
|
80 |
+
* *Feature:* adding Custom Search Base (thank you Fagner JB.);
|
81 |
* *Fix:* fixed a long time known canonical redirection bug where links like "/?p=55" wouldn't redirect to "/post-slug" (causing duplicated content).
|
82 |
+
* Confirmed compatibility with WP 3.1 (thank you Tatron, thank you John).
|
83 |
|
84 |
= 2.1.2 (01/02/2011) =
|
85 |
* *Fix:* fix on canonical url setting (thank you 8bitkid for pointing it out).
|
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.2
|
7 |
Author: António Andrade
|
8 |
Author URI: http://dardna.com
|
9 |
*/
|
@@ -69,7 +69,7 @@ if (!class_exists("WPhtc")) {
|
|
69 |
# Disable canonical redirection on urls using custom pagination permalink
|
70 |
function wphtc_filter_redirect_canonical($requested_url){
|
71 |
$WPhtc_data=get_option('WPhtc_data');
|
72 |
-
if(isset($WPhtc_data['cpp'])&&
|
73 |
return false;
|
74 |
}
|
75 |
else{
|
@@ -557,4 +557,4 @@ if (isset($WPhtc)) {
|
|
557 |
add_action('edited_category',array($WPhtc,'refresh_rewrite_rules'));
|
558 |
add_action('delete_category',array($WPhtc,'refresh_rewrite_rules'));
|
559 |
}
|
560 |
-
?>
|
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.2.2
|
7 |
Author: António Andrade
|
8 |
Author URI: http://dardna.com
|
9 |
*/
|
69 |
# Disable canonical redirection on urls using custom pagination permalink
|
70 |
function wphtc_filter_redirect_canonical($requested_url){
|
71 |
$WPhtc_data=get_option('WPhtc_data');
|
72 |
+
if(isset($WPhtc_data['cpp'])&&$WPhtc_data['cpp']!=''&&get_query_var('paged') > 1&&strpos($requested_url,urlencode($WPhtc_data['cpp']))){
|
73 |
return false;
|
74 |
}
|
75 |
else{
|
557 |
add_action('edited_category',array($WPhtc,'refresh_rewrite_rules'));
|
558 |
add_action('delete_category',array($WPhtc,'refresh_rewrite_rules'));
|
559 |
}
|
560 |
+
?>
|