WP Hide & Security Enhancer - Version 1.6.1

Version Description

  • Compatibility file fix for Shield Security
  • WordPress 5.5.1 compatibility tag
Download this release

Release Info

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

Code changes from version 1.6.0.9.1 to 1.6.1

compatibility/js/wp_simple_firewall.js DELETED
@@ -1,24 +0,0 @@
1
-
2
-
3
- jQuery(document).on( 'click', '#WPH_conflict_handle_wp_simple_firewall_login .notice-dismiss', function() {
4
-
5
- var nonce = jQuery('#WPH_conflict_handle_wp_simple_firewall_login_nonce').val();
6
-
7
- var queryString = { "action": "wph_notice_ignore_wp_simple_firewall", "type" : 'login', '_wpnonce' : nonce};
8
- //send the data through ajax
9
- jQuery.ajax({
10
- type: 'POST',
11
- url: ajaxurl,
12
- data: queryString,
13
- cache: false,
14
- success: function(data){
15
-
16
-
17
- },
18
- error: function(html){
19
-
20
- }
21
- });
22
-
23
-
24
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
compatibility/wp-simple-firewall.php CHANGED
@@ -1,25 +1,19 @@
1
  <?php
2
 
3
- /**
4
- * Compatibility for Plugin Name: Shield Security
5
- * Compatibility checked on Version: 6.10.9
6
- */
7
 
 
 
 
 
 
 
8
  class WPH_conflict_handle_wp_simple_firewall
9
  {
10
 
11
- static function is_plugin_active()
12
- {
13
-
14
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
15
-
16
- if(is_plugin_active( 'wp-simple-firewall/icwp-wpsf.php' ))
17
- return TRUE;
18
- else
19
- return FALSE;
20
-
21
- }
22
-
23
  static public function custom_login_check()
24
  {
25
  global $wph;
@@ -33,51 +27,40 @@
33
  add_action('plugins_loaded', array( 'WPH_conflict_handle_wp_simple_firewall', 'on_plugins_loaded' ), 5);
34
 
35
  }
36
-
37
 
38
- static public function on_plugins_loaded()
39
  {
40
 
41
-
42
- $oICWP_Wpsf_Controller = ICWP_WPSF_Plugin_Controller::GetInstance( WP_PLUGIN_DIR . '/wp-simple-firewall/icwp-wpsf.php' );
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  //check if custom login is active
45
  if( ! $oICWP_Wpsf_Controller->oFeatureHandlerLoginProtect->isCustomLoginPathEnabled())
46
  return FALSE;
47
 
48
  global $wph;
 
 
 
 
49
 
50
- //attempt to disable other plugin code
51
- add_action( 'init', array( 'WPH_conflict_handle_wp_simple_firewall', '_on_filter_init' ), -1 );
52
 
53
  }
54
 
55
 
56
- static function _on_filter_init()
57
- {
58
- global $wph;
59
-
60
- if($wph->functions->anonymous_object_filter_exists('init', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'doBlockPossibleWpLoginLoad'))
61
- {
62
- //ready to process
63
- $wph->functions->remove_anonymous_object_filter('init', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'doBlockPossibleWpLoginLoad');
64
- $wph->functions->remove_anonymous_object_filter('wp_loaded', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'aLoadWpLogin');
65
- $wph->functions->remove_anonymous_object_filter('login_init', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'aLoginFormAction');
66
- $wph->functions->remove_anonymous_object_filter('site_url', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'fCheckForLoginPhp');
67
- $wph->functions->remove_anonymous_object_filter('network_site_url', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'fCheckForLoginPhp');
68
- $wph->functions->remove_anonymous_object_filter('wp_redirect', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'fCheckForLoginPhp');
69
- $wph->functions->remove_anonymous_object_filter('wp_redirect', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'fProtectUnauthorizedLoginRedirect');
70
- $wph->functions->remove_anonymous_object_filter('et_anticipate_exceptions', 'ICWP_WPSF_Processor_LoginProtect_WpLogin', 'fAddToEtMaintenanceExceptions');
71
-
72
- //add an admin notice to inform about the conflict
73
- add_action('admin_notices', array( 'WPH_conflict_handle_wp_simple_firewall', 'admin_notice' ));
74
- add_action( 'wp_ajax_wph_notice_ignore_wp_simple_firewall', array( 'WPH_conflict_handle_wp_simple_firewall','ajax_calls' ));
75
- add_action( 'admin_print_scripts', array( 'WPH_conflict_handle_wp_simple_firewall', 'admin_print_scripts' ) );
76
- }
77
-
78
- }
79
-
80
-
81
  static function admin_notice()
82
  {
83
  global $current_user ;
@@ -87,52 +70,18 @@
87
  //only for admins
88
  if ( ! current_user_can( 'install_plugins' ) )
89
  return;
90
-
91
- $WPH_notice_wp_simple_firewall__login = get_user_meta($user_id, 'wph_hide_notice_wp_simple_firewall__login');
 
 
 
 
 
92
 
93
- if ( empty($WPH_notice_wp_simple_firewall__login ))
94
- {
95
- echo '<div id="WPH_conflict_handle_wp_simple_firewall_login" class="error notice is-dismissible"><p>';
96
-
97
- wp_nonce_field( 'WPH_conflict_handle_wp_simple_firewall_login-error-nottice-disable', 'WPH_conflict_handle_wp_simple_firewall_login_nonce' );
98
-
99
- printf('<button class="notice-dismiss" type="button"><span class="screen-reader-text">Dismiss this notice.</span></button>', '?wph_conflicts_report_wp_simple_firewall=0');
100
- _e('<b>Conflict notice</b>: The Security Firewall - Login Protection use the Rename WP Login Page functionality which is the same as WP Hide - Admin Login Url change. ', 'wp-hide-security-enhancer');
101
- echo "</p></div>";
102
- }
103
 
104
  }
105
-
106
- static function ajax_calls()
107
- {
108
- global $current_user;
109
- $user_id = $current_user->ID;
110
 
111
- $nonce = isset($_POST['_wpnonce']) ? $_POST['_wpnonce'] : '';
112
- $type = isset($_POST['type']) ? sanitize_text_field($_POST['type']) : '';
113
-
114
- if ( ! wp_verify_nonce( $nonce, 'WPH_conflict_handle_wp_simple_firewall_login-error-nottice-disable' ) )
115
- die();
116
-
117
- //only for admins
118
- If ( ! current_user_can ( 'manage_options' ) )
119
- return FALSE;
120
-
121
- switch($type)
122
- {
123
- case 'login':
124
- update_user_meta($user_id, 'wph_hide_notice_wp_simple_firewall__login', 'true');
125
-
126
- break;
127
-
128
- }
129
-
130
- }
131
-
132
- static function admin_print_scripts()
133
- {
134
- wp_enqueue_script( 'WPH_conflict_handle_wp_simple_firewall', WPH_URL . '/compatibility/js/wp_simple_firewall.js', array( 'jquery' ), '1.0', true );
135
- }
136
 
137
  }
138
 
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: Shield Security
5
+ * Compatibility checked on Version: 9.2.1
6
+ */
7
 
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
+ use FernleafSystems\Wordpress\Plugin\Shield;
11
+ use FernleafSystems\Wordpress\Plugin\Shield\Modules\LoginGuard;
12
+ use FernleafSystems\Wordpress\Services\Services;
13
+
14
  class WPH_conflict_handle_wp_simple_firewall
15
  {
16
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  static public function custom_login_check()
18
  {
19
  global $wph;
27
  add_action('plugins_loaded', array( 'WPH_conflict_handle_wp_simple_firewall', 'on_plugins_loaded' ), 5);
28
 
29
  }
 
30
 
31
+ static function is_plugin_active()
32
  {
33
 
34
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
 
35
 
36
+ if(is_plugin_active( 'wp-simple-firewall/icwp-wpsf.php' ))
37
+ return TRUE;
38
+ else
39
+ return FALSE;
40
+
41
+ }
42
+
43
+
44
+ static public function on_plugins_loaded()
45
+ {
46
+
47
+ $oICWP_Wpsf_Controller = Shield\Controller\Controller::GetInstance( WP_PLUGIN_DIR . '/wp-simple-firewall/src/login_protect.php' );
48
+
49
  //check if custom login is active
50
  if( ! $oICWP_Wpsf_Controller->oFeatureHandlerLoginProtect->isCustomLoginPathEnabled())
51
  return FALSE;
52
 
53
  global $wph;
54
+
55
+ $new_login = $wph->functions->get_module_item_setting('new_wp_login_php');
56
+ if ( empty ( $new_login ) )
57
+ return FALSE;
58
 
59
+ add_action('admin_notices', array( 'WPH_conflict_handle_wp_simple_firewall', 'admin_notice' ));
 
60
 
61
  }
62
 
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  static function admin_notice()
65
  {
66
  global $current_user ;
70
  //only for admins
71
  if ( ! current_user_can( 'install_plugins' ) )
72
  return;
73
+
74
+ ?>
75
+ <div id="WPH_conflict_handle_wp_simple_firewall_login" class="error notice">
76
+ <p>
77
+ <?php _e('<b>Conflict notice</b>: <b>The Security Firewall</b> - Login Protection -> Hide Login -> use similar functionality as to WP Hide plugin - Admin Login Url change. ', 'wp-hide-security-enhancer'); ?>
78
+ </p>
79
+ </div>
80
 
81
+ <?php
 
 
 
 
 
 
 
 
 
82
 
83
  }
 
 
 
 
 
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  }
87
 
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, 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.5
7
- Stable tag: 1.6.0.9.1
8
  License: GPLv2 or later
9
 
10
  Hide and increase Security for your WordPress site using smart techniques. No files are changed on your server. Change default admin and wp-login urls
@@ -345,6 +345,10 @@ Please get in touch with us and we'll do our best to include it for a next versi
345
 
346
  == Changelog ==
347
 
 
 
 
 
348
  = 1.6.0.9.1 =
349
  * Ignore CDN value check for domain name similitude
350
 
3
  Donate link: https://www.nsp-code.com/
4
  Tags: wordpress hide, hide, security, 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.5.1
7
+ Stable tag: 1.6.1
8
  License: GPLv2 or later
9
 
10
  Hide and increase Security for your WordPress site using smart techniques. No files are changed on your server. Change default admin and wp-login urls
345
 
346
  == Changelog ==
347
 
348
+ = 1.6.1 =
349
+ * Compatibility file fix for Shield Security
350
+ * WordPress 5.5.1 compatibility tag
351
+
352
  = 1.6.0.9.1 =
353
  * Ignore CDN value check for domain name similitude
354
 
wp-hide.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.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.6.0.9.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.6.1
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */