WP Hide & Security Enhancer - Version 1.4.6.6

Version Description

  • Fixed rewrite ens slashes for wp-login.php and wp-admin components
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 WP Hide & Security Enhancer
Version 1.4.6.6
Comparing to
See all releases

Code changes from version 1.4.6.5 to 1.4.6.6

modules/components/admin-admin_url.php CHANGED
@@ -96,16 +96,15 @@
96
  //check if the field is noe empty
97
  if(empty($saved_field_data))
98
  return $processing_response;
99
-
100
- $admin_url = $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' );
101
-
102
  $rewrite_base = $this->wph->functions->get_rewrite_base( $saved_field_data, FALSE, FALSE );
 
103
 
104
  if($this->wph->server_htaccess_config === TRUE)
105
  {
106
  $text = "\nRewriteCond %{REQUEST_URI} ". $rewrite_base ."$";
107
  $text .= "\nRewriteRule ^(.*)$ ". $rewrite_base ."/ [R=301,L]";
108
- $text .= "\nRewriteRule ^" . $rewrite_base . '(.*) '. $admin_url .'$1 [L,QSA]';
109
  }
110
 
111
  if($this->wph->server_web_config === TRUE)
@@ -119,7 +118,7 @@
119
  </rule>
120
  <rule name="wph-admin_url2" stopProcessing="true">
121
  <match url="^'. $rewrite_base .'(.*)" />
122
- <action type="Rewrite" url="'. $admin_url .'{R:1}" appendQueryString="true" />
123
  </rule>
124
  ';
125
 
96
  //check if the field is noe empty
97
  if(empty($saved_field_data))
98
  return $processing_response;
99
+
 
 
100
  $rewrite_base = $this->wph->functions->get_rewrite_base( $saved_field_data, FALSE, FALSE );
101
+ $rewrite_to = $this->wph->functions->get_rewrite_to_base( 'wp-admin', TRUE, FALSE );
102
 
103
  if($this->wph->server_htaccess_config === TRUE)
104
  {
105
  $text = "\nRewriteCond %{REQUEST_URI} ". $rewrite_base ."$";
106
  $text .= "\nRewriteRule ^(.*)$ ". $rewrite_base ."/ [R=301,L]";
107
+ $text .= "\nRewriteRule ^" . $rewrite_base . '(.*) '. $rewrite_to .'$1 [L,QSA]';
108
  }
109
 
110
  if($this->wph->server_web_config === TRUE)
118
  </rule>
119
  <rule name="wph-admin_url2" stopProcessing="true">
120
  <match url="^'. $rewrite_base .'(.*)" />
121
+ <action type="Rewrite" url="'. $rewrite_to .'{R:1}" appendQueryString="true" />
122
  </rule>
123
  ';
124
 
modules/components/admin-new_wp_login_php.php CHANGED
@@ -97,7 +97,7 @@
97
  $path .= $saved_field_data;
98
 
99
  $rewrite_base = $this->wph->functions->get_rewrite_base( $saved_field_data, FALSE, FALSE );
100
- $rewrite_to = $this->wph->functions->get_rewrite_to_base( $new_wp_login_php, FALSE );
101
 
102
  if($this->wph->server_htaccess_config === TRUE)
103
  $processing_response['rewrite'] = "\nRewriteRule ^" . $rewrite_base . '(.*) '. $rewrite_to .'$1 [L,QSA]';
97
  $path .= $saved_field_data;
98
 
99
  $rewrite_base = $this->wph->functions->get_rewrite_base( $saved_field_data, FALSE, FALSE );
100
+ $rewrite_to = $this->wph->functions->get_rewrite_to_base( $new_wp_login_php, TRUE, FALSE );
101
 
102
  if($this->wph->server_htaccess_config === TRUE)
103
  $processing_response['rewrite'] = "\nRewriteRule ^" . $rewrite_base . '(.*) '. $rewrite_to .'$1 [L,QSA]';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.nsp-code.com/donate.php
4
  Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
5
  Requires at least: 2.8
6
  Tested up to: 4.8.2
7
- Stable tag: 1.4.6.5
8
  License: GPLv2 or later
9
 
10
  Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
@@ -249,6 +249,9 @@ Please get in touch with us and we'll do our best to include it for a next versi
249
 
250
  == Changelog ==
251
 
 
 
 
252
  = 1.4.6.5 =
253
  * Fixed hardcoded wp-register.php within rewrite - root files component
254
  * Updated components to rewrite_base / rewrite_to system
4
  Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
5
  Requires at least: 2.8
6
  Tested up to: 4.8.2
7
+ Stable tag: 1.4.6.6
8
  License: GPLv2 or later
9
 
10
  Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
249
 
250
  == Changelog ==
251
 
252
+ = 1.4.6.6 =
253
+ * Fixed rewrite ens slashes for wp-login.php and wp-admin components
254
+
255
  = 1.4.6.5 =
256
  * Fixed hardcoded wp-register.php within rewrite - root files component
257
  * Updated components to rewrite_base / rewrite_to system
wp-hide.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.nsp-code.com
5
  Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
- Version: 1.4.6.5
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
5
  Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
+ Version: 1.4.6.6
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */