WP Hide & Security Enhancer - Version 1.8.6

Version Description

  • Ignore the "Disable Developer Tools" on iPhone
  • WordPress 6.1 compatibility tag
  • Fix: Security headers progress comparison step.
  • Slight css changes
Download this release

Release Info

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

Code changes from version 1.8.5 to 1.8.6

assets/css/wph.css CHANGED
@@ -201,9 +201,16 @@ table .wph_input tr td{}
201
  #security-scan .dashicons-yes {color: #229d51}
202
  #security-scan .outdated_plugin {clear: both; width: 50%; display: inline-block;}
203
  #security-scan .outdated_plugin .icon {max-height: 40px; max-width: 40px; float: left; margin-right: 10px}
 
204
  #security-scan .actions {text-align: right}
 
205
  #security-scan .actions .wph-pro { background-color: #f04d46; border-color: transparent; font-weight: bold}
206
  #security-scan .actions .wph-pro:hover {background-color: #c83e38}
 
 
 
 
 
207
 
208
  table .select.multiple {height: 82px}
209
 
201
  #security-scan .dashicons-yes {color: #229d51}
202
  #security-scan .outdated_plugin {clear: both; width: 50%; display: inline-block;}
203
  #security-scan .outdated_plugin .icon {max-height: 40px; max-width: 40px; float: left; margin-right: 10px}
204
+ #security-scan .important {color: #333; }
205
  #security-scan .actions {text-align: right}
206
+ #security-scan .actions .restore {display: none}
207
  #security-scan .actions .wph-pro { background-color: #f04d46; border-color: transparent; font-weight: bold}
208
  #security-scan .actions .wph-pro:hover {background-color: #c83e38}
209
+ #security-scan #hidden-items {padding-top: 40px}
210
+ #security-scan #hidden-items > div {opacity: 0.3; transition: opacity 0.2s linear; -webkit-transition: opacity 0.2s linear; -moz-transition: opacity 0.2s linear; }
211
+ #security-scan #hidden-items > div:hover {opacity: 1}
212
+ #security-scan #hidden-items .actions .restore {display: inline-block}
213
+ #security-scan #hidden-items .actions .ignore {display: none}
214
 
215
  table .select.multiple {height: 82px}
216
 
assets/js/wph.js CHANGED
@@ -130,26 +130,70 @@
130
  jQuery('#wph-graph .wph-graph-data').html( 'Loading..' );
131
  jQuery('#wph-graph .wph-graph-progress').css( 'transform', 'rotate(0deg)')
132
 
 
 
 
133
  jQuery.ajax({
134
  type: 'POST',
135
  url: ajaxurl,
136
  dataType: "json",
137
  data: {
138
- 'action':'wph_check_headers',
139
  'nonce' : nonce
140
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  success:function(data) {
142
- jQuery('#security-scan .spinner').css( 'visibility', 'hidden');
143
- jQuery('#wph-graph .wph-graph-data').html( data.graph.message );
144
- jQuery('#wph-graph .wph-graph-progress').css( 'transform', 'rotate(' + data.graph.value +'deg)')
145
  },
146
  error: function(errorThrown){
147
- jQuery('#security-scan .spinner').css( 'visibility', 'hidden');
148
- jQuery('#wph-graph .wph-graph-data').html( data.graph.message );
149
- jQuery('#wph-graph .wph-graph-progress').css( 'transform', 'rotate(' + data.graph.value +'deg)')
150
  }
151
  });
152
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
  }
155
 
130
  jQuery('#wph-graph .wph-graph-data').html( 'Loading..' );
131
  jQuery('#wph-graph .wph-graph-progress').css( 'transform', 'rotate(0deg)')
132
 
133
+ var LastResponseLength = false;
134
+ var Response = '';
135
+
136
  jQuery.ajax({
137
  type: 'POST',
138
  url: ajaxurl,
139
  dataType: "json",
140
  data: {
141
+ 'action':'wph_site_scan',
142
  'nonce' : nonce
143
  },
144
+ xhrFields: {
145
+ onprogress: function(e) {
146
+ var thisResponse, Response = e.currentTarget.response;
147
+ if( LastResponseLength === false) {
148
+ thisResponse = Response;
149
+ LastResponseLength = Response.length;
150
+ } else {
151
+ thisResponse = Response.substring( LastResponseLength );
152
+ LastResponseLength = Response.length;
153
+ }
154
+
155
+ Response = JSON.parse( thisResponse );
156
+
157
+ if ( jQuery('#scann-items > #item-' + Response.item_id).length > 0 )
158
+ jQuery ( '#item-' + Response.item_id).replaceWith( Response.html );
159
+ else
160
+ jQuery ( '#scann-items').append( Response.html );
161
+
162
+ jQuery ( '#item-' + Response.item_id ).removeClass('processing');
163
+ }
164
+ },
165
  success:function(data) {
166
+ // jQuery('#security-scan .spinner').css( 'visibility', 'hidden');
167
+ //jQuery('#wph-graph .wph-graph-data').html( data.graph.message );
168
+ //jQuery('#wph-graph .wph-graph-progress').css( 'transform', 'rotate(' + data.graph.value +'deg)')
169
  },
170
  error: function(errorThrown){
171
+
 
 
172
  }
173
  });
174
  }
175
+
176
+
177
+ scan_ignore_item ( item_id, nonce )
178
+ {
179
+ jQuery.ajax({
180
+ type: 'POST',
181
+ url: ajaxurl,
182
+ dataType: "json",
183
+ data: {
184
+ 'action' : 'wph_site_scan_ignore',
185
+ 'item_id' : item_id,
186
+ 'nonce' : nonce
187
+ },
188
+ success:function( data ) {
189
+ jQuery('#item-' + item_id ).appendTo("#hidden-items");
190
+ },
191
+ error: function(errorThrown){
192
+
193
+ }
194
+ });
195
+
196
+ }
197
 
198
  }
199
 
include/wph.class.php CHANGED
@@ -375,7 +375,7 @@
375
  {
376
  include_once(WPH_PATH . '/include/admin-interface.class.php');
377
  include_once(WPH_PATH . '/include/admin-interfaces/setup.class.php');
378
-
379
 
380
  $this->admin_interface = new WPH_interface();
381
 
@@ -403,7 +403,7 @@
403
  $hookID = add_submenu_page( 'wp-hide', 'WP Hide', $menu_title, 'manage_options', 'wp-hide', array( $setup_interface,'_render' ) );
404
  add_action('admin_print_styles-' . $hookID , array($setup_interface, 'admin_print_styles'));
405
  add_action('admin_print_scripts-' . $hookID , array($setup_interface, 'admin_print_scripts'));
406
-
407
 
408
  foreach($this->modules as $module)
409
  {
375
  {
376
  include_once(WPH_PATH . '/include/admin-interface.class.php');
377
  include_once(WPH_PATH . '/include/admin-interfaces/setup.class.php');
378
+
379
 
380
  $this->admin_interface = new WPH_interface();
381
 
403
  $hookID = add_submenu_page( 'wp-hide', 'WP Hide', $menu_title, 'manage_options', 'wp-hide', array( $setup_interface,'_render' ) );
404
  add_action('admin_print_styles-' . $hookID , array($setup_interface, 'admin_print_styles'));
405
  add_action('admin_print_scripts-' . $hookID , array($setup_interface, 'admin_print_scripts'));
406
+
407
 
408
  foreach($this->modules as $module)
409
  {
modules/components/general-user-interactions.php CHANGED
@@ -217,13 +217,14 @@
217
 
218
  $disable_developer_tools = $this->wph->functions->get_module_item_setting('disable_developer_tools');
219
 
220
- if ( $disable_developer_tools == 'no')
221
  return;
222
 
223
  wp_register_script('devtools-detect', WPH_URL . '/assets/js/devtools-detect.js');
224
  wp_enqueue_script ( 'devtools-detect' );
225
 
226
  }
 
227
 
228
  function output_footer_js()
229
  {
@@ -330,7 +331,7 @@
330
  });
331
 
332
 
333
- <?php if ( $disable_developer_tools == 'yes' ) { ?>
334
 
335
  if ( window.devtools.isOpen )
336
  DevToolsIsOpen();
217
 
218
  $disable_developer_tools = $this->wph->functions->get_module_item_setting('disable_developer_tools');
219
 
220
+ if ( $disable_developer_tools == 'no' || stripos ( $_SERVER['HTTP_USER_AGENT'],"iPhone") )
221
  return;
222
 
223
  wp_register_script('devtools-detect', WPH_URL . '/assets/js/devtools-detect.js');
224
  wp_enqueue_script ( 'devtools-detect' );
225
 
226
  }
227
+
228
 
229
  function output_footer_js()
230
  {
331
  });
332
 
333
 
334
+ <?php if ( $disable_developer_tools == 'yes' ) { ?>
335
 
336
  if ( window.devtools.isOpen )
337
  DevToolsIsOpen();
modules/components/security-check_headers.php CHANGED
@@ -332,7 +332,7 @@
332
  $_JSON_response['graph']['message'] .= 'Good';
333
  else if ( $progress >= 60 and $progress < 80 )
334
  $_JSON_response['graph']['message'] .= 'Great';
335
- else if ( $progress > 80 )
336
  $_JSON_response['graph']['message'] .= 'Excelent';
337
 
338
  echo json_encode( $_JSON_response );
332
  $_JSON_response['graph']['message'] .= 'Good';
333
  else if ( $progress >= 60 and $progress < 80 )
334
  $_JSON_response['graph']['message'] .= 'Great';
335
+ else if ( $progress >= 80 )
336
  $_JSON_response['graph']['message'] .= 'Excelent';
337
 
338
  echo json_encode( $_JSON_response );
modules/module-rewrite.php CHANGED
@@ -77,7 +77,7 @@
77
 
78
  $interface_data['menu_title'] = __('<span class="wph-info">Hide&rarr;</span> Rewrite / URLs', 'wp-hide-security-enhancer');
79
  $interface_data['menu_slug'] = self::get_module_slug();
80
- $interface_data['menu_position'] = 1;
81
 
82
  return $interface_data;
83
  }
77
 
78
  $interface_data['menu_title'] = __('<span class="wph-info">Hide&rarr;</span> Rewrite / URLs', 'wp-hide-security-enhancer');
79
  $interface_data['menu_slug'] = self::get_module_slug();
80
+ $interface_data['menu_position'] = 10;
81
 
82
  return $interface_data;
83
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: nsp-code, tdgu
3
  Donate link: https://www.nsp-code.com/
4
  Tags: wordpress hide, hide, security, secuirty headers, 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: 6.0.3
7
- Stable tag: 1.8.5
8
  License: GPLv2 or later
9
 
10
  Hide WordPress, wp-content, wp-includes, wp-admin, login URL, plugins, themes etc. Block the default URLs. Security Headers etc.
@@ -387,6 +387,12 @@ Please get in touch with us and we’ll do our best to include it inthe next ver
387
 
388
  == Changelog ==
389
 
 
 
 
 
 
 
390
  = 1.8.5 =
391
  * Improved Disable Developer Tools feature, by returning an empty page.
392
  * W3 Total Cache - implements support for Push CDN and custom folders
3
  Donate link: https://www.nsp-code.com/
4
  Tags: wordpress hide, hide, security, secuirty headers, 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: 6.1
7
+ Stable tag: 1.8.6
8
  License: GPLv2 or later
9
 
10
  Hide WordPress, wp-content, wp-includes, wp-admin, login URL, plugins, themes etc. Block the default URLs. Security Headers etc.
387
 
388
  == Changelog ==
389
 
390
+ = 1.8.6 =
391
+ * Ignore the "Disable Developer Tools" on iPhone
392
+ * WordPress 6.1 compatibility tag
393
+ * Fix: Security headers progress comparison step.
394
+ * Slight css changes
395
+
396
  = 1.8.5 =
397
  * Improved Disable Developer Tools feature, by returning an empty page.
398
  * W3 Total Cache - implements support for Push CDN and custom folders
wp-hide.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://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.8.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.8.6
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */