WP Hide & Security Enhancer - Version 1.4.4.2

Version Description

  • Fixed default wp-content block
  • Updated compatibility with WP Fastest Cache
  • Fixed wp-content replacement
Download this release

Release Info

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

Code changes from version 1.4.4.1 to 1.4.4.2

conflicts/wp-fastest-cache.php CHANGED
@@ -26,13 +26,28 @@
26
  return FALSE;
27
 
28
  global $wph;
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- //add bufer filtering for sueprcache plugin when using css/js combine functionality
31
- add_filter('wpfc/file_get_contents_curl', array($wph, 'url_replace'), 999);
32
 
33
- add_filter('wpfc/cache/callback', array($wph, 'url_replace'), 999);
 
 
 
34
 
35
-
36
  }
37
 
38
  }
26
  return FALSE;
27
 
28
  global $wph;
29
+
30
+ add_action('plugins_loaded', array('WPH_conflict_handle_wp_fastest_cache', 'plugins_loaded'));
31
+
32
+ }
33
+
34
+ static function plugins_loaded()
35
+ {
36
+ ob_start(array('WPH_conflict_handle_wp_fastest_cache', "callback"));
37
+ }
38
+
39
+
40
+ static function callback($content)
41
+ {
42
 
43
+ global $wph;
 
44
 
45
+ $replacement_list = $wph->functions->get_replacement_list();
46
+
47
+ //replace the urls
48
+ $content = $wph->functions->content_urls_replacement($content, $replacement_list );
49
 
50
+ return $content;
51
  }
52
 
53
  }
include/update.class.php CHANGED
@@ -143,19 +143,6 @@
143
  if(version_compare($version, '1.4.2', '<'))
144
  {
145
 
146
- //unlink the router folder and inner files
147
- /*
148
- if( file_exists(WPH_PATH . '/router' ))
149
- {
150
- if( file_exists(WPH_PATH . '/router/file-process.php' ))
151
- @unlink ( WPH_PATH . '/router/file-process.php' );
152
- if( file_exists(WPH_PATH . '/router/environment.php' ))
153
- @unlink ( WPH_PATH . '/router/environment.php' );
154
-
155
- @rmdir( WPH_PATH . '/router' );
156
- }
157
- */
158
-
159
  if( ! $_triggered_flush_rules )
160
  {
161
  add_action('wp_loaded', array($this, 'flush_rules') , -1);
@@ -189,8 +176,7 @@
189
  }
190
  }
191
 
192
- //regenerate the environemnt file
193
- $this->wph->set_static_environemnt_file();
194
 
195
  if( ! $_triggered_flush_rules )
196
  {
@@ -200,9 +186,28 @@
200
 
201
 
202
  $version = '1.4.4';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  }
204
 
205
 
 
 
 
 
 
206
  //save the last code version
207
  $this->wph->settings['version'] = WPH_CORE_VERSION;
208
  $this->wph->functions->update_settings($this->wph->settings);
143
  if(version_compare($version, '1.4.2', '<'))
144
  {
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  if( ! $_triggered_flush_rules )
147
  {
148
  add_action('wp_loaded', array($this, 'flush_rules') , -1);
176
  }
177
  }
178
 
179
+
 
180
 
181
  if( ! $_triggered_flush_rules )
182
  {
186
 
187
 
188
  $version = '1.4.4';
189
+ }
190
+
191
+
192
+ if(version_compare($version, '1.4.4.2', '<'))
193
+ {
194
+
195
+ if( ! $_triggered_flush_rules )
196
+ {
197
+ add_action('wp_loaded', array($this, 'flush_rules') , -1);
198
+ $_triggered_flush_rules = TRUE;
199
+ }
200
+
201
+
202
+ $version = '1.4.4.2';
203
  }
204
 
205
 
206
+
207
+ //Always generate the environemnt file
208
+ $this->wph->set_static_environemnt_file();
209
+
210
+
211
  //save the last code version
212
  $this->wph->settings['version'] = WPH_CORE_VERSION;
213
  $this->wph->functions->update_settings($this->wph->settings);
modules/components/rewrite-wp_content_path.php CHANGED
@@ -55,7 +55,7 @@
55
 
56
  //add default plugin path replacement
57
  $new_content_path = trailingslashit( site_url() ) . untrailingslashit( $saved_field_data );
58
- $this->wph->functions->add_replacement( trailingslashit( home_url() ) . $content_directory , $new_content_path );
59
 
60
  return TRUE;
61
  }
@@ -108,7 +108,7 @@
108
  if (empty( $new_content_path ))
109
  return FALSE;
110
 
111
- $content_directory = $this->wph->default_variables['content_directory'];
112
 
113
  if($this->wph->server_htaccess_config === TRUE)
114
  {
55
 
56
  //add default plugin path replacement
57
  $new_content_path = trailingslashit( site_url() ) . untrailingslashit( $saved_field_data );
58
+ $this->wph->functions->add_replacement( untrailingslashit( home_url() ) . $content_directory , $new_content_path );
59
 
60
  return TRUE;
61
  }
108
  if (empty( $new_content_path ))
109
  return FALSE;
110
 
111
+ $content_directory = ltrim($this->wph->default_variables['content_directory'], '/');
112
 
113
  if($this->wph->server_htaccess_config === TRUE)
114
  {
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, ap-admin, admin hide
5
  Requires at least: 2.8
6
  Tested up to: 4.7.3
7
- Stable tag: 1.4.4.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.
@@ -243,6 +243,11 @@ Please get in touch with us and we'll do our best to include it for a next versi
243
 
244
  == Changelog ==
245
 
 
 
 
 
 
246
  = 1.4.4.1 =
247
  * Replace the file-process file remove update
248
 
4
  Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, ap-admin, admin hide
5
  Requires at least: 2.8
6
  Tested up to: 4.7.3
7
+ Stable tag: 1.4.4.2
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.
243
 
244
  == Changelog ==
245
 
246
+ = 1.4.4.2 =
247
+ * Fixed default wp-content block
248
+ * Updated compatibility with WP Fastest Cache
249
+ * Fixed wp-content replacement
250
+
251
  = 1.4.4.1 =
252
  * Replace the file-process file remove update
253
 
router/environment.php DELETED
@@ -1,2 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
- $environment_variable = '{"theme":{"folder_name":"twentyfifteen","mapped_name":"my_template"},"child_theme":{"folder_name":"child-theme","mapped_name":"my_child_template"},"allowed_paths":["F:\/htdocs\/wp-hide-demo\/wp-content\/themes"],"cache_path":"F:\/htdocs\/wp-hide-demo\/wp-content\/cache\/wph\/","site_wordpress_relative_path":"\/","wordpress_directory":"","site_relative_path":""}' ?>
 
 
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.4.1
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.4.2
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */