WP Hide & Security Enhancer - Version 1.4.7.6

Version Description

  • PHP 7.2 compatibility
  • Replaced trilingslashit from the end of template url to improve compatibility with urls (e.g. JavaScript variables) which does not include an ending slash.
Download this release

Release Info

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

Code changes from version 1.4.7.4 to 1.4.7.6

include/functions.class.php CHANGED
@@ -2201,10 +2201,9 @@
2201
 
2202
  $defaults = array( 'errors' => false, 'allowed' => null, 'blog_id' => 0 );
2203
  $args = wp_parse_args( $args, $defaults );
2204
-
2205
-
2206
  // Register the default theme directory root
2207
- if ( count( $wp_theme_directories ) < 1 )
2208
  register_theme_directory( get_theme_root() );
2209
 
2210
  $theme_directories = search_theme_directories();
2201
 
2202
  $defaults = array( 'errors' => false, 'allowed' => null, 'blog_id' => 0 );
2203
  $args = wp_parse_args( $args, $defaults );
2204
+
 
2205
  // Register the default theme directory root
2206
+ if ( ! is_array ( $wp_theme_directories ) || count( $wp_theme_directories ) < 1 )
2207
  register_theme_directory( get_theme_root() );
2208
 
2209
  $theme_directories = search_theme_directories();
modules/components/general-meta.php CHANGED
@@ -204,13 +204,20 @@
204
  if(empty($saved_field_data) || $saved_field_data == 'no')
205
  return FALSE;
206
 
207
- add_filter('the_generator', create_function('', 'return "";'));
208
  remove_action( 'wp_head', 'wp_generator' );
209
 
210
  //make sure it's being replaced
211
  add_filter( 'wp-hide/ob_start_callback', array(&$this, 'ob_start_callback_remove_generator_meta'));
212
  }
213
 
 
 
 
 
 
 
 
214
 
215
  function ob_start_callback_remove_generator_meta( $buffer )
216
  {
204
  if(empty($saved_field_data) || $saved_field_data == 'no')
205
  return FALSE;
206
 
207
+ add_filter('the_generator', array( $this, 'the_generator' ));
208
  remove_action( 'wp_head', 'wp_generator' );
209
 
210
  //make sure it's being replaced
211
  add_filter( 'wp-hide/ob_start_callback', array(&$this, 'ob_start_callback_remove_generator_meta'));
212
  }
213
 
214
+ function the_generator()
215
+ {
216
+
217
+ return '';
218
+
219
+ }
220
+
221
 
222
  function ob_start_callback_remove_generator_meta( $buffer )
223
  {
modules/components/rewrite-new_theme_path.php CHANGED
@@ -146,7 +146,7 @@
146
  return FALSE;
147
 
148
  //add replacement url
149
- $this->wph->functions->add_replacement( trailingslashit( $this->wph->default_variables['template_url']), trailingslashit( trailingslashit( home_url() ) . $saved_field_data ) );
150
 
151
  }
152
 
@@ -189,7 +189,7 @@
189
 
190
 
191
  //add replacement url
192
- $this->wph->functions->add_replacement( trailingslashit( $this->wph->default_variables['stylesheet_uri'] ) , trailingslashit( trailingslashit( home_url() ) . untrailingslashit( $saved_field_data ) ) );
193
 
194
  }
195
 
146
  return FALSE;
147
 
148
  //add replacement url
149
+ $this->wph->functions->add_replacement( $this->wph->default_variables['template_url'], trailingslashit( home_url() ) . $saved_field_data );
150
 
151
  }
152
 
189
 
190
 
191
  //add replacement url
192
+ $this->wph->functions->add_replacement( $this->wph->default_variables['stylesheet_uri'] , trailingslashit( home_url() ) . untrailingslashit( $saved_field_data ) );
193
 
194
  }
195
 
readme.txt CHANGED
@@ -4,10 +4,10 @@ Donate link: https://www.nsp-code.com/
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.9.1
7
- Stable tag: 1.4.7.4
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.
11
 
12
  == Description ==
13
 
@@ -231,9 +231,9 @@ Feel free to contact us at electronice_delphi@yahoo.com
231
  * Go to admin and change some of plugin options to see which one cause the problem. Then report it to forum or get in touch with us to fix it.
232
  * If you can't login to admin, use the Recovery Link which has been sent to your e-mail. This will reset the login to default.
233
  * If none of above worked for you, or you can't find the recovery link, delete the plugin from your wp-content/plugins directory. Then remove any lines in your .htaccess file between
234
- # BEGIN WP Hide & Security Enhancer
235
  ..
236
- # END WP Hide & Security Enhancer
237
 
238
  * At this point the site should run as before. If for some reason still not working, you missed something, please get in touch with us at electronice_delphi@yahoo.com and we'll fix it for you in no time!
239
 
@@ -252,6 +252,10 @@ Please get in touch with us and we'll do our best to include it for a next versi
252
 
253
  == Changelog ==
254
 
 
 
 
 
255
  = 1.4.7.4 =
256
  * WooCommerce downloadables fix when using custom slug for uploads
257
  * Include support for admin_url() along with admin-ajax.php
@@ -427,6 +431,6 @@ Always keep plugin up to date.
427
 
428
 
429
  == Localization ==
430
- Please help and translate this plugin to your language at https://translate.wordpress.org/projects/wp-plugins/wp-hide-security-enhancer
431
 
432
- Please help by promoting this plugin with an article on your site or any other place. If you liked this code or helped on your your project, consider to leave a 5 star review on this board.
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.9.1
7
+ Stable tag: 1.4.7.6
8
  License: GPLv2 or later
9
 
10
+ Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
11
 
12
  == Description ==
13
 
231
  * Go to admin and change some of plugin options to see which one cause the problem. Then report it to forum or get in touch with us to fix it.
232
  * If you can't login to admin, use the Recovery Link which has been sent to your e-mail. This will reset the login to default.
233
  * If none of above worked for you, or you can't find the recovery link, delete the plugin from your wp-content/plugins directory. Then remove any lines in your .htaccess file between
234
+ BEGIN WP Hide & Security Enhancer
235
  ..
236
+ END WP Hide & Security Enhancer
237
 
238
  * At this point the site should run as before. If for some reason still not working, you missed something, please get in touch with us at electronice_delphi@yahoo.com and we'll fix it for you in no time!
239
 
252
 
253
  == Changelog ==
254
 
255
+ = 1.4.7.6 =
256
+ * PHP 7.2 compatibility
257
+ * Replaced trilingslashit from the end of template url to improve compatibility with urls (e.g. JavaScript variables) which does not include an ending slash.
258
+
259
  = 1.4.7.4 =
260
  * WooCommerce downloadables fix when using custom slug for uploads
261
  * Include support for admin_url() along with admin-ajax.php
431
 
432
 
433
  == Localization ==
434
+ Please help and translate this plugin to your language at <a href="https://translate.wordpress.org/projects/wp-plugins/wp-hide-security-enhancer">https://translate.wordpress.org/projects/wp-plugins/wp-hide-security-enhancer</a>
435
 
436
+ Please help by promoting this plugin with an article on your site or any other place. If you liked this code or helped with your project, consider to leave a 5 star review on this board.
router/environment.php CHANGED
@@ -0,0 +1,2 @@
 
 
1
+ <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
+ $environment_variable = '{"theme":{"folder_name":"twentysixteen","mapped_name":"jd_content\/themes\/theme_name"},"allowed_paths":["F:\/htdocs\/wp-hide-demo\/wp-content\/themes"],"cache_path":"F:\/htdocs\/wp-hide-demo\/wp-content\/cache\/wph\/","wordpress_directory":"","site_relative_path":"\/"}' ?>
wp-hide.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Hide & Security Enhancer
4
- 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.7.4
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
@@ -82,8 +82,6 @@ Domain Path: /languages/
82
  //replace the mu-loader
83
  WPH_functions::unlink_mu_loader();
84
 
85
- //redirect to old url
86
-
87
  }
88
 
89
 
1
  <?php
2
  /*
3
  Plugin Name: WP Hide & Security Enhancer
4
+ Plugin URI: https://www.wp-hide.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.7.6
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
82
  //replace the mu-loader
83
  WPH_functions::unlink_mu_loader();
84
 
 
 
85
  }
86
 
87