WP Hide & Security Enhancer - Version 1.3.8.1

Version Description

  • Fix - Create mu-plugins folder if not exists
Download this release

Release Info

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

Code changes from version 1.3.8 to 1.3.8.1

include/functions.class.php CHANGED
@@ -549,6 +549,25 @@
549
  return $status;
550
  }
551
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
552
 
553
  /**
554
  *
549
  return $status;
550
  }
551
 
552
+
553
+ /**
554
+ * Check if the plugin started through MU plugin loader
555
+ *
556
+ */
557
+ function is_muloader()
558
+ {
559
+
560
+ if (defined('WPH_MULOADER'))
561
+ return TRUE;
562
+
563
+ //check if the file actually exists
564
+ if( file_exists(WPMU_PLUGIN_DIR . '/wp-hide-loader.php' ))
565
+ return TRUE;
566
+
567
+ return FALSE;
568
+
569
+ }
570
+
571
 
572
  /**
573
  *
include/wph.class.php CHANGED
@@ -299,9 +299,9 @@
299
  {
300
  global $wp_rewrite;
301
 
302
- if(!defined('WPH_MULOADER'))
303
  {
304
- echo "<div class='error'><p>". __('Unable to lanuch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please make sure this location is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
305
  }
306
 
307
  //check for permalinks enabled
299
  {
300
  global $wp_rewrite;
301
 
302
+ if(! $this->functions->is_muloader())
303
  {
304
+ echo "<div class='error'><p>". __('Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please make sure this location is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
305
  }
306
 
307
  //check for permalinks enabled
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.nsp-code.com/donate.php
4
  Tags: hide, security, improve security, hacking, wp hide, wordpress hide, custom login url, wp-loging.php, ap-admin
5
  Requires at least: 2.8
6
  Tested up to: 4.7.1
7
- Stable tag: 1.3.8
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.
@@ -235,6 +235,9 @@ Please get in touch with us and we'll do our best to include it for a next versi
235
 
236
  == Changelog ==
237
 
 
 
 
238
  = 1.3.8 =
239
  * WP Rocket plugin compatibility module
240
  * Plugin loader component through mu-plugins for earlier processing and environment manage
4
  Tags: hide, security, improve security, hacking, wp hide, wordpress hide, custom login url, wp-loging.php, ap-admin
5
  Requires at least: 2.8
6
  Tested up to: 4.7.1
7
+ Stable tag: 1.3.8.1
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.
235
 
236
  == Changelog ==
237
 
238
+ = 1.3.8.1 =
239
+ * Fix - Create mu-plugins folder if not exists
240
+
241
  = 1.3.8 =
242
  * WP Rocket plugin compatibility module
243
  * Plugin loader component through mu-plugins for earlier processing and environment manage
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.3.8
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
@@ -83,6 +83,14 @@ Domain Path: /languages/
83
 
84
  function WPH_copy_mu_loader()
85
  {
 
 
 
 
 
 
 
 
86
  //check if file actually exists already
87
  if( file_exists(WPMU_PLUGIN_DIR . '/wp-hide-loader.php' ))
88
  return;
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.3.8.1
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
83
 
84
  function WPH_copy_mu_loader()
85
  {
86
+
87
+ //check if mu-plugins folder exists
88
+ if(! is_dir( WPMU_PLUGIN_DIR ))
89
+ {
90
+ if (! wp_mkdir_p( WPMU_PLUGIN_DIR ) )
91
+ return;
92
+ }
93
+
94
  //check if file actually exists already
95
  if( file_exists(WPMU_PLUGIN_DIR . '/wp-hide-loader.php' ))
96
  return;