WP Hide & Security Enhancer - Version 1.7.9.2

Version Description

  • Change the advanced_notice class within the interfaces to avoid issues caused by 3rd theme.
  • Do not remove comments when json request
  • WordPress 6.0 compatibilit tag
Download this release

Release Info

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

Code changes from version 1.7.9 to 1.7.9.2

assets/css/wph.css CHANGED
@@ -39,12 +39,12 @@
39
  .wph_input input[type=text],.wph_input textarea,.wph_input select{border-color:#dddddd; width: 100%; margin-left: 0px}
40
 
41
  .wph_input .advanced.hide {display: none}
42
- .wph_input .advanced_notice {background-color: #FFF; border: 1px solid #cfcfd1; border-left: 5px solid #7d6591; margin: 10px 0 10px -16px; display: flex; justify-content: center; padding: 10px 0}
43
- .wph_input .advanced_notice .icon {flex: 0 0 60px; text-align: center; margin-top: auto; margin-bottom: auto;}
44
- .wph_input .advanced_notice .icon img {max-width: 32px}
45
- .wph_input .advanced_notice .text {width: 100%}
46
- .wph_input .advanced_notice .text p {color:#4a4949; font-size: 13px;line-height: 17px;}
47
- .wph_input .advanced_notice .actions {flex: 0 0 100px; text-align: center; vertical-align: middle; margin-top: auto; margin-bottom: auto;}
48
 
49
  .wph_input .options_text{padding: 10px 0; border-left: 4px solid #0073aa;margin-left: -13px;padding-left: 10px; display: flex}
50
  .wph_input .options_text.text_pre {margin-bottom: 10px;}
@@ -98,12 +98,12 @@ table .wph_input tr .cell{}
98
  .conditional_rules .wph_input .cell.comparison{width: 12%}
99
 
100
  .wph_input .advanced.hide {display: none}
101
- .wph_input .advanced_notice {background-color: #FFF; border: 1px solid #cfcfd1; border-left: 5px solid #7d6591; margin: 10px 0 10px -17px; display: flex; justify-content: center; padding: 10px 0}
102
- .wph_input .advanced_notice .icon {flex: 0 0 60px; text-align: center; margin-top: auto; margin-bottom: auto;}
103
- .wph_input .advanced_notice .icon img {max-width: 32px}
104
- .wph_input .advanced_notice .text {width: 100%}
105
- .wph_input .advanced_notice .text p {color:#4a4949; font-size: 13px;line-height: 17px;}
106
- .wph_input .advanced_notice .actions {flex: 0 0 100px; text-align: center; vertical-align: middle; margin-top: auto; margin-bottom: auto;}
107
 
108
  .wph_input .options_text{padding: 10px 0; border-left: 4px solid #0073aa;margin-left: -13px;padding-left: 10px; display: flex}
109
  .wph_input .options_text.text_pre {margin-bottom: 10px;}
39
  .wph_input input[type=text],.wph_input textarea,.wph_input select{border-color:#dddddd; width: 100%; margin-left: 0px}
40
 
41
  .wph_input .advanced.hide {display: none}
42
+ .wph_input .wph_anotice {background-color: #FFF; border: 1px solid #cfcfd1; border-left: 5px solid #7d6591; margin: 10px 0 10px -16px; display: flex; justify-content: center; padding: 10px 0}
43
+ .wph_input .wph_anotice .icon {flex: 0 0 60px; text-align: center; margin-top: auto; margin-bottom: auto;}
44
+ .wph_input .wph_anotice .icon img {max-width: 32px}
45
+ .wph_input .wph_anotice .text {width: 100%}
46
+ .wph_input .wph_anotice .text p {color:#4a4949; font-size: 13px;line-height: 17px;}
47
+ .wph_input .wph_anotice .actions {flex: 0 0 100px; text-align: center; vertical-align: middle; margin-top: auto; margin-bottom: auto;}
48
 
49
  .wph_input .options_text{padding: 10px 0; border-left: 4px solid #0073aa;margin-left: -13px;padding-left: 10px; display: flex}
50
  .wph_input .options_text.text_pre {margin-bottom: 10px;}
98
  .conditional_rules .wph_input .cell.comparison{width: 12%}
99
 
100
  .wph_input .advanced.hide {display: none}
101
+ .wph_input .wph_anotice {background-color: #FFF; border: 1px solid #cfcfd1; border-left: 5px solid #7d6591; margin: 10px 0 10px -17px; display: flex; justify-content: center; padding: 10px 0}
102
+ .wph_input .wph_anotice .icon {flex: 0 0 60px; text-align: center; margin-top: auto; margin-bottom: auto;}
103
+ .wph_input .wph_anotice .icon img {max-width: 32px}
104
+ .wph_input .wph_anotice .text {width: 100%}
105
+ .wph_input .wph_anotice .text p {color:#4a4949; font-size: 13px;line-height: 17px;}
106
+ .wph_input .wph_anotice .actions {flex: 0 0 100px; text-align: center; vertical-align: middle; margin-top: auto; margin-bottom: auto;}
107
 
108
  .wph_input .options_text{padding: 10px 0; border-left: 4px solid #0073aa;margin-left: -13px;padding-left: 10px; display: flex}
109
  .wph_input .options_text.text_pre {margin-bottom: 10px;}
assets/js/wph.js CHANGED
@@ -25,7 +25,7 @@
25
  showAdvanced( element )
26
  {
27
  jQuery( element ).closest('.wph_input').find('div.advanced').show('fast');
28
- jQuery( element ).closest('.advanced_notice').slideUp('fast', function() { jQuery(this).hide() });
29
 
30
 
31
  }
25
  showAdvanced( element )
26
  {
27
  jQuery( element ).closest('.wph_input').find('div.advanced').show('fast');
28
+ jQuery( element ).closest('.wph_anotice').slideUp('fast', function() { jQuery(this).hide() });
29
 
30
 
31
  }
include/admin-interface.class.php CHANGED
@@ -274,7 +274,7 @@
274
  if ( $is_advanced && $hide_advanced )
275
  {
276
  ?>
277
- <div class="advanced_notice">
278
  <div class="icon">
279
  <img src="<?php echo WPH_URL ?>/assets/images/warning.png" />
280
  </div>
274
  if ( $is_advanced && $hide_advanced )
275
  {
276
  ?>
277
+ <div class="wph_anotice">
278
  <div class="icon">
279
  <img src="<?php echo WPH_URL ?>/assets/images/warning.png" />
280
  </div>
modules/components/general-html.php CHANGED
@@ -219,7 +219,8 @@
219
  if(empty($saved_field_data) || $saved_field_data == 'no')
220
  return FALSE;
221
 
222
- if ( wp_is_json_request() && strpos( $_SERVER['REQUEST_URI'], '/blocks' ) !== FALSE )
 
223
  return;
224
 
225
  if ( defined('WP_ADMIN') && ( !defined('DOING_AJAX') || ( defined('DOING_AJAX') && DOING_AJAX === FALSE )) )
219
  if(empty($saved_field_data) || $saved_field_data == 'no')
220
  return FALSE;
221
 
222
+ //if ( wp_is_json_request() && strpos( $_SERVER['REQUEST_URI'], '/blocks' ) !== FALSE )
223
+ if ( wp_is_json_request() )
224
  return;
225
 
226
  if ( defined('WP_ADMIN') && ( !defined('DOING_AJAX') || ( defined('DOING_AJAX') && DOING_AJAX === FALSE )) )
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: 5.9.3
7
- Stable tag: 1.7.9
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,11 @@ 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.8.1 =
382
  * When checking and calculating the the Headers protection score, ignore the SSL verification for the domain, to allow usage of invalid certificates.
383
  * Check if set headers are actually passed-through on the front side, as some servers may block that.
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
 
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
384
+ * WordPress 6.0 compatibilit tag
385
+
386
  = 1.7.8.1 =
387
  * When checking and calculating the the Headers protection score, ignore the SSL verification for the domain, to allow usage of invalid certificates.
388
  * Check if set headers are actually passed-through on the front side, as some servers may block that.
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
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.7.9.2
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */