WP htaccess Control - Version 3.3.1

Version Description

(28/01/2013) =

  • Tested under 3.5.1.
Download this release

Release Info

Developer antonioandra.de
Plugin Icon wp plugin WP htaccess Control
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.3 to 3.3.1

Files changed (3) hide show
  1. index.php +4 -4
  2. readme.txt +7 -3
  3. wp-htaccess-control.php +11 -4
index.php CHANGED
@@ -2,7 +2,7 @@
2
  <html>
3
  <head>
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <style>
6
  html{background-color:#E4F2FD;}
7
  body{color:#333;font-family:Verdana;font-size:0.8em;width:600px;margin:75px auto;padding:30px;background:white;}
8
  h1,h2{font-family:Georgia;}
@@ -13,12 +13,12 @@
13
  </head>
14
  <body>
15
  <h1><a href="http://wordpress.org/extend/plugins/wp-htaccess-control/" title="Visit this Plugin at the Wordpress Plugin Directory">WP htaccess Control</a></h1>
16
- <p><strong>Plugin Author:</strong> <a href="http://dardna.com/" title="Visit the Author">António Andrade</a></p>
17
  <h2>Links</h2>
18
  <ul>
19
  <li><a href="http://wordpress.org/extend/plugins/wp-htaccess-control/" title="Visit this Plugin at the Wordpress Plugin Directory">WP htaccess Control at the Plugin Directory</a></li>
20
- <li><a href="http://dardna.com/wp-htaccess-control" title="Visit the Plugin Homepage">Plugin Homepage</a></li>
21
- <li><a href="http://dardna.com/" title="Visit the Author">Author Homepage</a></li>
22
  </ul>
23
  </body>
24
  </html>
2
  <html>
3
  <head>
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <style type="text/css">
6
  html{background-color:#E4F2FD;}
7
  body{color:#333;font-family:Verdana;font-size:0.8em;width:600px;margin:75px auto;padding:30px;background:white;}
8
  h1,h2{font-family:Georgia;}
13
  </head>
14
  <body>
15
  <h1><a href="http://wordpress.org/extend/plugins/wp-htaccess-control/" title="Visit this Plugin at the Wordpress Plugin Directory">WP htaccess Control</a></h1>
16
+ <p><strong>Plugin Author:</strong> <a href="http://antonioandra.de/" title="Visit the Author">António Andrade</a></p>
17
  <h2>Links</h2>
18
  <ul>
19
  <li><a href="http://wordpress.org/extend/plugins/wp-htaccess-control/" title="Visit this Plugin at the Wordpress Plugin Directory">WP htaccess Control at the Plugin Directory</a></li>
20
+ <li><a href="http://antonioandra.de/wp-htaccess-control" title="Visit the Plugin Homepage">Plugin Homepage</a></li>
21
+ <li><a href="http://antonioandra.de/" title="Visit the Author">Author Homepage</a></li>
22
  </ul>
23
  </body>
24
  </html>
readme.txt CHANGED
@@ -6,8 +6,8 @@ Contributors: antonioandra.de
6
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=s4mancha%40gmail%2ecom&lc=US&item_name=WP%20htaccess%20Control%20%28Antonio%20Andrade%29&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest
7
  Tags: permalinks, permalink, author, htaccess, rewrite, redirect, admin, maintenance, pagination, category, category base, archive, archives
8
  Requires at least: 3.4
9
- Tested up to: 3.4.1
10
- Stable tag: 3.2.1
11
 
12
  Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
13
 
@@ -77,11 +77,15 @@ Search redirection is based on Mark Jaquith's **Nice Search** but extended so th
77
  == Stable Versions ==
78
 
79
  For WordPress versions above 3.4 use the plugin version 3.3.
80
- For WordPress versions prior to 3.4 use the plugin version 2.7.2.
81
 
82
 
83
  == Changelog ==
84
 
 
 
 
 
85
  = 3.3 (01/07/2012) =
86
 
87
  * Added option to force removal of taxonomy hierarchy from permalinks;
6
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=s4mancha%40gmail%2ecom&lc=US&item_name=WP%20htaccess%20Control%20%28Antonio%20Andrade%29&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest
7
  Tags: permalinks, permalink, author, htaccess, rewrite, redirect, admin, maintenance, pagination, category, category base, archive, archives
8
  Requires at least: 3.4
9
+ Tested up to: 3.5.1
10
+ Stable tag: 3.3
11
 
12
  Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress.
13
 
77
  == Stable Versions ==
78
 
79
  For WordPress versions above 3.4 use the plugin version 3.3.
80
+ For WordPress versions prior to 3.4 use the plugin version 2.7.2.1.
81
 
82
 
83
  == Changelog ==
84
 
85
+ = 3.3.1 (28/01/2013) =
86
+
87
+ * Tested under 3.5.1.
88
+
89
  = 3.3 (01/07/2012) =
90
 
91
  * Added option to force removal of taxonomy hierarchy from permalinks;
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
  */
@@ -132,6 +132,9 @@ if (!class_exists("WPhtc")) {
132
  }
133
  }
134
  # Flush rules
 
 
 
135
  function refresh_rewrite_rules(){
136
  global $wp_rewrite;
137
  $wp_rewrite->flush_rules();
@@ -299,7 +302,8 @@ if (!class_exists("WPhtc")) {
299
  if(class_exists('GoogleSitemapGenerator')&&$this->data['cap']!=''){
300
  $generatorObject = &GoogleSitemapGenerator::GetInstance();
301
  if ($generatorObject != null){
302
- global $wpdb;
 
303
  $sql = "SELECT DISTINCT
304
  p.ID,
305
  u.user_nicename,
@@ -327,8 +331,11 @@ if (!class_exists("WPhtc")) {
327
  }
328
  }
329
  # Adding rewrite pairs to the .htaccess generated by Wordpress, everytime the rules are flush
 
 
 
 
330
  function wp_rewrite_rules($wp_rewrite){
331
-
332
  # Keeping a copy of the generated htaccess in our option array for later reviewing
333
  $this->data['cur_hta']='# BEGIN Wordpress<br/>'.nl2br($wp_rewrite->mod_rewrite_rules())."# END Wordpress";
334
  update_option('WPhtc_data',$this->data);
@@ -336,7 +343,7 @@ if (!class_exists("WPhtc")) {
336
  }
337
  # Adding Custom Rules to htaccess file generated by Wordpress, everytime the rules are flush
338
  function hta_rules($rules){
339
-
340
  # keeping original hta
341
  if(!isset($this->data['htaccess_original'])){
342
  $this->data['htaccess_original']=$rules;
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.1
7
  Author: António Andrade
8
  Author URI: http://antonioandra.de
9
  */
132
  }
133
  }
134
  # Flush rules
135
+ /*
136
+ * @var $wp_rewrite WP_Rewrite
137
+ */
138
  function refresh_rewrite_rules(){
139
  global $wp_rewrite;
140
  $wp_rewrite->flush_rules();
302
  if(class_exists('GoogleSitemapGenerator')&&$this->data['cap']!=''){
303
  $generatorObject = &GoogleSitemapGenerator::GetInstance();
304
  if ($generatorObject != null){
305
+ /* var $wpdb WP_DB */
306
+ global $wpdb, $wp_version;
307
  $sql = "SELECT DISTINCT
308
  p.ID,
309
  u.user_nicename,
331
  }
332
  }
333
  # Adding rewrite pairs to the .htaccess generated by Wordpress, everytime the rules are flush
334
+ /*
335
+ * @var $wp_rewrite WP_Rewrite
336
+ * @return WP_Rewrite
337
+ */
338
  function wp_rewrite_rules($wp_rewrite){
 
339
  # Keeping a copy of the generated htaccess in our option array for later reviewing
340
  $this->data['cur_hta']='# BEGIN Wordpress<br/>'.nl2br($wp_rewrite->mod_rewrite_rules())."# END Wordpress";
341
  update_option('WPhtc_data',$this->data);
343
  }
344
  # Adding Custom Rules to htaccess file generated by Wordpress, everytime the rules are flush
345
  function hta_rules($rules){
346
+ $new_rules="";
347
  # keeping original hta
348
  if(!isset($this->data['htaccess_original'])){
349
  $this->data['htaccess_original']=$rules;