WP Hide & Security Enhancer - Version 1.8

Version Description

  • Add a new button to reset the current page options.
  • Use regex to sanitize the URL arguments
  • Relocated the Reset All Settings button to the bottom of the interface.
  • Compatibility for Super Page Cache for Cloudflare
  • Slight layout improvements and changes.
  • WordPress 6.0.1 compatibilit tag
Download this release

Release Info

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

Code changes from version 1.7.9.2 to 1.8

assets/css/wph.css CHANGED
@@ -9,7 +9,7 @@
9
  #wph h3.handle {border-bottom: 1px solid #e1e1e1; font-size: 14px; line-height: 1.4; margin: 0; padding: 8px 12px;}
10
  #wph .postbox {margin-bottom: 10px; overflow:hidden}
11
  #wph .wph_input fieldset label { margin-bottom: 7px; display: block; }
12
- #wph #reset_settings_form .reset_settings { margin-top: -31px;}
13
  #wph h2 #reset_settings, #wph #reset_settings_form .reset_settings { }
14
  #wph span.wph-pro {background-color: #f04d46; color:#FFF; font-weight: bold;display: inline-block; padding: 2px 4px;}
15
  #wph .something-wrong { opacity: 0.2; -webkit-transition: opacity 0.3s ease-in-out;
9
  #wph h3.handle {border-bottom: 1px solid #e1e1e1; font-size: 14px; line-height: 1.4; margin: 0; padding: 8px 12px;}
10
  #wph .postbox {margin-bottom: 10px; overflow:hidden}
11
  #wph .wph_input fieldset label { margin-bottom: 7px; display: block; }
12
+ #wph #reset_settings_form .reset_settings { margin-top: -39px;margin-left: 10px;}
13
  #wph h2 #reset_settings, #wph #reset_settings_form .reset_settings { }
14
  #wph span.wph-pro {background-color: #f04d46; color:#FFF; font-weight: bold;display: inline-block; padding: 2px 4px;}
15
  #wph .something-wrong { opacity: 0.2; -webkit-transition: opacity 0.3s ease-in-out;
compatibility/wp-cloudflare-page-cache.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /**
5
+ * Compatibility : Super Page Cache for Cloudflare
6
+ * Introduced at : 4.6.1
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
+
11
+ class WPH_conflict_handle_wp_super_cache_for_cloudflare
12
+ {
13
+ var $wph;
14
+
15
+ function __construct()
16
+ {
17
+ if( ! $this->is_plugin_active() )
18
+ return FALSE;
19
+
20
+ $this->_init();
21
+
22
+ }
23
+
24
+ private function _init()
25
+ {
26
+ add_filter( 'swcfpc_normal_fallback_cache_html', array( $this, 'process_buffer'), 999 );
27
+ add_filter( 'swcfpc_curl_fallback_cache_html', array( $this, 'process_buffer'), 999 );
28
+ }
29
+
30
+ function is_plugin_active()
31
+ {
32
+
33
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
34
+
35
+ if(is_plugin_active( 'wp-cloudflare-page-cache/wp-cloudflare-super-page-cache.php' ))
36
+ return TRUE;
37
+ else
38
+ return FALSE;
39
+ }
40
+
41
+ function process_buffer( $buffer )
42
+ {
43
+
44
+ global $wph;
45
+
46
+ $buffer = $wph->ob_start_callback( $buffer );
47
+
48
+ return $buffer;
49
+
50
+ }
51
+
52
+
53
+
54
+ }
55
+
56
+
57
+ new WPH_conflict_handle_wp_super_cache_for_cloudflare();
58
+
59
+ ?>
include/admin-interface.class.php CHANGED
@@ -35,8 +35,8 @@
35
  function _render($interface_name)
36
  {
37
 
38
- $this->screen_slug = sanitize_text_field($_GET['page']);
39
- $this->tab_slug = isset($_GET['component']) ? sanitize_text_field($_GET['component']) : FALSE;
40
 
41
  //identify the module by slug
42
  $this->module = $this->functions->get_module_by_slug($this->screen_slug);
@@ -149,8 +149,8 @@
149
  <form method="post" id="wph-form" action="<?php
150
 
151
  $args = array(
152
- 'page' => isset($_GET['page']) ? $_GET['page'] : '',
153
- 'component' => isset($_GET['component']) ? $_GET['component'] : '',
154
  );
155
 
156
  $url_query = http_build_query( $args );
@@ -187,7 +187,56 @@
187
  </tbody>
188
  </table>
189
  <?php } ?>
190
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  </div>
192
 
193
  </div>
@@ -236,7 +285,7 @@
236
  <div class="row cell label <?php if ( $is_advanced ) { echo ' advanced'; } ?>">
237
  <ul class="options">
238
  <?php if ( $module_setting['input_type'] == 'text' ) { ?>
239
- <li><span class="tips dashicons dashicons-rest-api" title='Generate random value for the field' onClick="WPH.randomWord( this, '<?php if ( ! empty ($module_setting['help']['input_value_extension'])) { echo $module_setting['help']['input_value_extension']; } ?>' )"></span></li>
240
  <li><span class="tips dashicons dashicons-admin-appearance" title='Remove the field value' onClick="WPH.clear( this )"></span></li>
241
  <?php } ?>
242
  <?php
@@ -329,14 +378,14 @@
329
  case 'text' :
330
  $class = 'text';
331
 
332
- ?><input name="<?php echo $module_setting['id'] ?>" class="<?php echo $class ?>" value="<?php echo esc_html($value) ?>" placeholder="<?php echo esc_html($module_setting['placeholder']) ?>" type="text"><?php
333
 
334
  break;
335
 
336
  case 'textarea' :
337
  $class = 'textarea';
338
 
339
- ?><textarea rows="7" name="<?php echo $module_setting['id'] ?>" class="<?php echo $class ?>"><?php echo stripslashes ( esc_html($value) ) ?></textarea><?php
340
 
341
  break;
342
 
@@ -349,7 +398,12 @@
349
 
350
  foreach($module_setting['options'] as $option_value => $option_title)
351
  {
352
- ?><label><input type="radio" class="<?php echo $class ?>" <?php checked($value, $option_value) ?> value="<?php echo $option_value ?>" name="<?php echo $module_setting['id'] ?>"> <span><?php echo esc_html($option_title) ?></span></label><?php
 
 
 
 
 
353
  }
354
 
355
  ?>
@@ -424,27 +478,6 @@
424
 
425
  ?>
426
  </h2>
427
- <form id="reset_settings_form" action="<?php echo esc_url(admin_url( 'admin.php?page=wp-hide')) ?>" method="post" <?php
428
- if($this->wph->server_htaccess_config === FALSE && $this->wph->server_web_config === FALSE) {echo (' class="disabled"');}
429
- ?>>
430
- <input type="hidden" name="reset-settings" value="true" />
431
- <?php wp_nonce_field( 'wp-hide-reset-settings', '_wpnonce' ); ?>
432
-
433
- <input type="button" class="reset_settings button-secondary cancel alignright" value="Reset All Settings" onclick="wph_setting_reset_confirmation ();">
434
- <script type='text/javascript'>
435
- function wph_setting_reset_confirmation ()
436
- {
437
- var agree = confirm(wph_vars.reset_confirmation);
438
- if (!agree)
439
- return false;
440
-
441
- document.getElementById("reset_settings_form").submit();
442
- }
443
-
444
- </script>
445
-
446
- </form>
447
-
448
  <?php
449
 
450
  }
35
  function _render($interface_name)
36
  {
37
 
38
+ $this->screen_slug = preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['page'] );
39
+ $this->tab_slug = isset($_GET['component']) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['component'] ) : FALSE;
40
 
41
  //identify the module by slug
42
  $this->module = $this->functions->get_module_by_slug($this->screen_slug);
149
  <form method="post" id="wph-form" action="<?php
150
 
151
  $args = array(
152
+ 'page' => isset($_GET['page']) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['page'] ) : '',
153
+ 'component' => isset($_GET['component']) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['component'] ) : '',
154
  );
155
 
156
  $url_query = http_build_query( $args );
187
  </tbody>
188
  </table>
189
  <?php } ?>
190
+ </form>
191
+
192
+ <?php if ( $require_save ) { ?>
193
+ <form id="reset_settings_form" action="<?php echo esc_url(admin_url( 'admin.php?page=wp-hide')) ?>" method="post" <?php
194
+ if($this->wph->server_htaccess_config === FALSE && $this->wph->server_web_config === FALSE) {echo (' class="disabled"');}
195
+ ?>>
196
+ <input type="hidden" name="reset-settings" value="true" />
197
+ <?php wp_nonce_field( 'wp-hide-reset-settings', '_wpnonce' ); ?>
198
+
199
+
200
+ <a href="javascript: void(0);" onclick="wph_setting_page_reset_confirmation ();" class="reset_settings button-secondary"><?php _e('Reset Page Settings', 'wp-hide-security-enhancer') ?></a>
201
+ <script type='text/javascript'>
202
+ function wph_setting_page_reset_confirmation ()
203
+ {
204
+ var agree = confirm(wph_vars.reset_page_confirmation);
205
+ if (!agree)
206
+ return false;
207
+
208
+ jQuery ('form#wph-form input[type="text"].setting-value' ).each( function() {
209
+ jQuery(this).val('');
210
+ })
211
+ jQuery ('form#wph-form textarea.setting-value' ).each( function() {
212
+ jQuery(this).val('');
213
+ })
214
+ jQuery ('form#wph-form input[type="radio"].setting-value' ).each( function() {
215
+ if ( jQuery(this).hasClass('default-value') )
216
+ jQuery(this).prop("checked", true);
217
+ else
218
+ jQuery(this).prop("checked", false);
219
+ })
220
+ }
221
+
222
+ </script>
223
+
224
+
225
+ <input type="button" class="reset_settings button-secondary" value="<?php _e('Reset All Settings', 'wp-hide-security-enhancer') ?>" onclick="wph_setting_reset_confirmation ();">
226
+ <script type='text/javascript'>
227
+ function wph_setting_reset_confirmation ()
228
+ {
229
+ var agree = confirm(wph_vars.reset_confirmation);
230
+ if (!agree)
231
+ return false;
232
+
233
+ document.getElementById("reset_settings_form").submit();
234
+ }
235
+
236
+ </script>
237
+ </form>
238
+ <?php } ?>
239
+
240
  </div>
241
 
242
  </div>
285
  <div class="row cell label <?php if ( $is_advanced ) { echo ' advanced'; } ?>">
286
  <ul class="options">
287
  <?php if ( $module_setting['input_type'] == 'text' ) { ?>
288
+ <li><span class="tips dashicons dashicons-edit" title='Generate random value for the field' onClick="WPH.randomWord( this, '<?php if ( ! empty ($module_setting['help']['input_value_extension'])) { echo $module_setting['help']['input_value_extension']; } ?>' )"></span></li>
289
  <li><span class="tips dashicons dashicons-admin-appearance" title='Remove the field value' onClick="WPH.clear( this )"></span></li>
290
  <?php } ?>
291
  <?php
378
  case 'text' :
379
  $class = 'text';
380
 
381
+ ?><input name="<?php echo $module_setting['id'] ?>" class="setting-value <?php echo $class ?>" value="<?php echo esc_html($value) ?>" placeholder="<?php echo esc_html($module_setting['placeholder']) ?>" type="text"><?php
382
 
383
  break;
384
 
385
  case 'textarea' :
386
  $class = 'textarea';
387
 
388
+ ?><textarea rows="7" name="<?php echo $module_setting['id'] ?>" class="setting-value <?php echo $class ?>"><?php echo stripslashes ( esc_html($value) ) ?></textarea><?php
389
 
390
  break;
391
 
398
 
399
  foreach($module_setting['options'] as $option_value => $option_title)
400
  {
401
+ ?><label><input type="radio" class="setting-value <?php
402
+
403
+ if ( $option_value == 'no' )
404
+ echo 'default-value ';
405
+
406
+ ?><?php echo $class ?>" <?php checked($value, $option_value) ?> value="<?php echo $option_value ?>" name="<?php echo $module_setting['id'] ?>"> <span><?php echo esc_html($option_title) ?></span></label><?php
407
  }
408
 
409
  ?>
478
 
479
  ?>
480
  </h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
  <?php
482
 
483
  }
include/class.compatibility.php CHANGED
@@ -84,6 +84,7 @@
84
  include_once(WPH_PATH . 'compatibility/wepos.php');
85
  include_once(WPH_PATH . 'compatibility/oxygen.php');
86
  include_once(WPH_PATH . 'compatibility/translatepress-multilingual.php');
 
87
 
88
  /**
89
  * Themes
84
  include_once(WPH_PATH . 'compatibility/wepos.php');
85
  include_once(WPH_PATH . 'compatibility/oxygen.php');
86
  include_once(WPH_PATH . 'compatibility/translatepress-multilingual.php');
87
+ include_once(WPH_PATH . 'compatibility/wp-cloudflare-page-cache.php');
88
 
89
  /**
90
  * Themes
include/functions.class.php CHANGED
@@ -148,11 +148,11 @@
148
  If ( ! current_user_can ( 'manage_options' ) )
149
  return FALSE;
150
 
151
- $screen_slug = sanitize_text_field( $_GET['page'] );
152
  if(empty($screen_slug))
153
  return FALSE;
154
 
155
- $tab_slug = isset($_GET['component']) ? sanitize_text_field($_GET['component']) : FALSE;
156
 
157
  $module = $this->get_module_by_slug($screen_slug);
158
  if(!is_object($module))
@@ -1969,7 +1969,7 @@
1969
  //feetch a new set of settings
1970
  $settings = $this->get_settings();
1971
 
1972
- $wph_recovery = isset($_GET['wph-recovery']) ? sanitize_text_field($_GET['wph-recovery']) : '';
1973
  if(empty($wph_recovery) || $wph_recovery != $this->wph->settings['recovery_code'])
1974
  return;
1975
 
@@ -2210,8 +2210,8 @@
2210
  If ( ! current_user_can ( 'manage_options' ) )
2211
  return FALSE;
2212
 
2213
- $screen_slug = isset ( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';
2214
- $tab_slug = isset ( $_GET['component'] ) ? sanitize_text_field( $_GET['component'] ) : '';
2215
 
2216
  $site_settings = $this->get_settings();
2217
  $modules_settings = $site_settings['module_settings'];
148
  If ( ! current_user_can ( 'manage_options' ) )
149
  return FALSE;
150
 
151
+ $screen_slug = preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['page'] );
152
  if(empty($screen_slug))
153
  return FALSE;
154
 
155
+ $tab_slug = isset($_GET['component']) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['component'] ) : FALSE;
156
 
157
  $module = $this->get_module_by_slug($screen_slug);
158
  if(!is_object($module))
1969
  //feetch a new set of settings
1970
  $settings = $this->get_settings();
1971
 
1972
+ $wph_recovery = isset($_GET['wph-recovery']) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['wph-recovery'] ) : '';
1973
  if(empty($wph_recovery) || $wph_recovery != $this->wph->settings['recovery_code'])
1974
  return;
1975
 
2210
  If ( ! current_user_can ( 'manage_options' ) )
2211
  return FALSE;
2212
 
2213
+ $screen_slug = isset ( $_GET['page'] ) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['page'] ) : '';
2214
+ $tab_slug = isset ( $_GET['component'] ) ? preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['component'] ) : '';
2215
 
2216
  $site_settings = $this->get_settings();
2217
  $modules_settings = $site_settings['module_settings'];
include/wph.class.php CHANGED
@@ -360,8 +360,9 @@
360
 
361
  // Localize the script with new data
362
  $translation_array = array(
363
- 'reset_confirmation' => __('Are you sure to reset all settings? All options will be removed. Manual remove of rewrite lines is required if no access from php', 'wp-hide-security-enhancer'),
364
- 'run_sample_headers' => __('This creates a sample setup for Headers. That will overwrite any Headers settings previously created through the plugin options. Are you sure?', 'wp-hide-security-enhancer')
 
365
  );
366
  wp_localize_script( 'wph', 'wph_vars', $translation_array );
367
 
360
 
361
  // Localize the script with new data
362
  $translation_array = array(
363
+ 'reset_page_confirmation' => __('Are you sure to reset the current page settings? All options will be changed to default. An Save is still required for the page.', 'wp-hide-security-enhancer'),
364
+ 'reset_confirmation' => __('Are you sure to reset all settings? All options will be removed. Manual removal of rewrite lines is required if no access from PHP.', 'wp-hide-security-enhancer'),
365
+ 'run_sample_headers' => __('This creates a sample setup for Headers. That will overwrite any Headers settings previously created through the plugin options. Are you sure?', 'wp-hide-security-enhancer')
366
  );
367
  wp_localize_script( 'wph', 'wph_vars', $translation_array );
368
 
modules/components/admin-admin_url.php CHANGED
@@ -155,7 +155,7 @@
155
 
156
  }
157
 
158
- function set_auth_cookie($auth_cookie, $expire, $expiration, $user_id, $scheme)
159
  {
160
 
161
  $new_admin_url = $this->wph->functions->get_module_item_setting('admin_url');
@@ -171,11 +171,11 @@
171
  $secure = FALSE;
172
  }
173
 
174
- $sitecookiepath = empty($this->wph->default_variables['wordpress_directory']) ? SITECOOKIEPATH : rtrim(SITECOOKIEPATH, trailingslashit($this->wph->default_variables['wordpress_directory']));
175
  if (empty ($sitecookiepath))
176
  $sitecookiepath = '/';
177
 
178
- setcookie($auth_cookie_name, $auth_cookie, $expire, $sitecookiepath . $new_admin_url, COOKIE_DOMAIN, $secure, true);
179
 
180
  }
181
 
155
 
156
  }
157
 
158
+ function set_auth_cookie( $auth_cookie, $expire, $expiration, $user_id, $scheme )
159
  {
160
 
161
  $new_admin_url = $this->wph->functions->get_module_item_setting('admin_url');
171
  $secure = FALSE;
172
  }
173
 
174
+ $sitecookiepath = empty ( $this->wph->default_variables['wordpress_directory'] ) ? SITECOOKIEPATH : rtrim ( SITECOOKIEPATH, trailingslashit ( $this->wph->default_variables['wordpress_directory'] ) );
175
  if (empty ($sitecookiepath))
176
  $sitecookiepath = '/';
177
 
178
+ setcookie ( $auth_cookie_name, $auth_cookie, $expire, $sitecookiepath . $new_admin_url, COOKIE_DOMAIN, $secure, true );
179
 
180
  }
181
 
modules/components/security-header-cross-origin-embedder-policy.php CHANGED
@@ -67,10 +67,10 @@
67
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
68
  <fieldset>
69
  <label>
70
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
71
  </label>
72
  <label>
73
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
74
  </label>
75
  </fieldset>
76
  </div>
67
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
68
  <fieldset>
69
  <label>
70
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
71
  </label>
72
  <label>
73
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
74
  </label>
75
  </fieldset>
76
  </div>
modules/components/security-header-cross-origin-opener-policy.php CHANGED
@@ -74,10 +74,10 @@
74
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
75
  <fieldset>
76
  <label>
77
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
78
  </label>
79
  <label>
80
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
81
  </label>
82
  </fieldset>
83
  </div>
74
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
75
  <fieldset>
76
  <label>
77
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
78
  </label>
79
  <label>
80
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
81
  </label>
82
  </fieldset>
83
  </div>
modules/components/security-header-cross-origin-resource-policy.php CHANGED
@@ -67,10 +67,10 @@
67
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
68
  <fieldset>
69
  <label>
70
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
71
  </label>
72
  <label>
73
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
74
  </label>
75
  </fieldset>
76
  </div>
67
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
68
  <fieldset>
69
  <label>
70
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
71
  </label>
72
  <label>
73
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
74
  </label>
75
  </fieldset>
76
  </div>
modules/components/security-header-x-content-type-options.php CHANGED
@@ -69,10 +69,10 @@
69
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
70
  <fieldset>
71
  <label>
72
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
73
  </label>
74
  <label>
75
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
76
  </label>
77
  </fieldset>
78
  </div>
69
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
70
  <fieldset>
71
  <label>
72
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
73
  </label>
74
  <label>
75
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
76
  </label>
77
  </fieldset>
78
  </div>
modules/components/security-header-x-download-options.php CHANGED
@@ -67,10 +67,10 @@
67
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
68
  <fieldset>
69
  <label>
70
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
71
  </label>
72
  <label>
73
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
74
  </label>
75
  </fieldset>
76
  </div>
67
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
68
  <fieldset>
69
  <label>
70
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
71
  </label>
72
  <label>
73
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
74
  </label>
75
  </fieldset>
76
  </div>
modules/components/security-header-x-frame-options.php CHANGED
@@ -71,10 +71,10 @@
71
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
72
  <fieldset>
73
  <label>
74
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
75
  </label>
76
  <label>
77
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
78
  </label>
79
  </fieldset>
80
  </div>
71
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
72
  <fieldset>
73
  <label>
74
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
75
  </label>
76
  <label>
77
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
78
  </label>
79
  </fieldset>
80
  </div>
modules/components/security-header-x-permitted-cross-domain-policies.php CHANGED
@@ -75,10 +75,10 @@
75
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
76
  <fieldset>
77
  <label>
78
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
79
  </label>
80
  <label>
81
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
82
  </label>
83
  </fieldset>
84
  </div>
75
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
76
  <fieldset>
77
  <label>
78
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
79
  </label>
80
  <label>
81
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
82
  </label>
83
  </fieldset>
84
  </div>
modules/components/security-header-x-xss-protection.php CHANGED
@@ -70,10 +70,10 @@
70
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
71
  <fieldset>
72
  <label>
73
- <input type="radio" class="radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
74
  </label>
75
  <label>
76
- <input type="radio" class="radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
77
  </label>
78
  </fieldset>
79
  </div>
70
  <p><?php _e('Enable Header', 'wp-hide-security-enhancer') ?></p>
71
  <fieldset>
72
  <label>
73
+ <input type="radio" class="setting-value default-value radio" value="no" name="enabled" <?php if ( $module_settings['enabled'] == 'no' ) { ?>checked="checked"<?php } ?>> <span>No</span>
74
  </label>
75
  <label>
76
+ <input type="radio" class="setting-value radio" value="yes" name="enabled" <?php if ( $module_settings['enabled'] == 'yes' ) { ?>checked="checked"<?php } ?>> <span>Yes</span>
77
  </label>
78
  </fieldset>
79
  </div>
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
7
- Stable tag: 1.7.9.2
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.
@@ -378,6 +378,14 @@ Please get in touch with us and we’ll do our best to include it inthe next ver
378
 
379
  == Changelog ==
380
 
 
 
 
 
 
 
 
 
381
  = 1.7.9.2 =
382
  * Change the advanced_notice class within the interfaces to avoid issues caused by 3rd theme.
383
  * Do not remove comments when json request
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.1
7
+ Stable tag: 1.8
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.
378
 
379
  == Changelog ==
380
 
381
+ = 1.8 =
382
+ * Add a new button to reset the current page options.
383
+ * Use regex to sanitize the URL arguments
384
+ * Relocated the Reset All Settings button to the bottom of the interface.
385
+ * Compatibility for Super Page Cache for Cloudflare
386
+ * Slight layout improvements and changes.
387
+ * WordPress 6.0.1 compatibilit tag
388
+
389
  = 1.7.9.2 =
390
  * Change the advanced_notice class within the interfaces to avoid issues caused by 3rd theme.
391
  * Do not remove comments when json request
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.7.9.2
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
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */