Hide My WP Ghost – Security Plugin - Version 4.0.09

Version Description

(27 Aug 2020 ) = * Update - Added the version hook to remove the versions from CSS and JS * Update - Load the login on WPEngine server with PHP7.4 when the login is set as /login * Update - Detect Flywheel server and add the rules accordingly

Download this release

Release Info

Developer johndarrel
Plugin Icon 128x128 Hide My WP Ghost – Security Plugin
Version 4.0.09
Comparing to
See all releases

Code changes from version 4.0.10 to 4.0.09

classes/Tools.php CHANGED
@@ -1218,26 +1218,4 @@ class HMW_Classes_Tools extends HMW_Classes_FrontController {
1218
  return "text/plain";
1219
  }
1220
 
1221
- /**
1222
- * Return false on hooks
1223
- *
1224
- * @param string $param
1225
- *
1226
- * @return bool
1227
- */
1228
- public static function returnFalse( $param = null ) {
1229
- return false;
1230
- }
1231
-
1232
- /**
1233
- * Return true on hooks
1234
- *
1235
- * @param string $param
1236
- *
1237
- * @return bool
1238
- */
1239
- public static function returnTrue( $param = null ) {
1240
- return true;
1241
- }
1242
-
1243
  }
1218
  return "text/plain";
1219
  }
1220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1221
  }
controllers/Rewrite.php CHANGED
@@ -37,10 +37,7 @@ class HMW_Controllers_Rewrite extends HMW_Classes_FrontController {
37
  add_action( 'login_init', array( $this->model, 'login_init' ), 1 );
38
  add_filter( 'login_redirect', array( $this->model, 'sanitize_login_redirect' ), 9, 3 );
39
  add_filter( 'wp_redirect', array( $this->model, 'sanitize_redirect' ), PHP_INT_MAX, 2 );
40
-
41
- if ( HMW_Classes_Tools::isWpengine() ) {
42
- add_filter( 'wp_redirect', array( $this->model, 'loopCheck' ), PHP_INT_MAX, 1 );
43
- }
44
 
45
  add_action( 'login_head', array( $this->model, 'login_head' ), PHP_INT_MAX );
46
  add_action( 'wp_logout', array( $this->model, 'wp_logout' ), PHP_INT_MAX );
@@ -148,7 +145,7 @@ class HMW_Controllers_Rewrite extends HMW_Classes_FrontController {
148
 
149
  if ( ! is_admin() ) {
150
  if ( HMW_Classes_Tools::getOption( 'hmw_hide_version' ) ) {
151
- add_filter( 'the_generator', array( 'HMW_Classes_Tools', 'returnFalse' ), 99, 1 );
152
  remove_action( 'wp_head', 'wp_generator' );
153
  remove_action( 'wp_head', 'wp_resource_hints', 2 );
154
  }
@@ -168,7 +165,7 @@ class HMW_Controllers_Rewrite extends HMW_Classes_FrontController {
168
  }
169
 
170
  if ( HMW_Classes_Tools::getOption( 'hmw_disable_xmlrpc' ) ) {
171
- add_filter( 'xmlrpc_enabled', array( 'HMW_Classes_Tools', 'returnFalse' ));
172
  }
173
 
174
  if ( HMW_Classes_Tools::getOption( 'hmw_disable_embeds' ) ) {
@@ -176,6 +173,11 @@ class HMW_Controllers_Rewrite extends HMW_Classes_FrontController {
176
  $this->disable_embeds();
177
  }
178
 
 
 
 
 
 
179
  //Windows Live Write
180
  if ( HMW_Classes_Tools::getOption( 'hmw_disable_manifest' ) ) {
181
  //disable the embeds
@@ -247,7 +249,7 @@ class HMW_Controllers_Rewrite extends HMW_Classes_FrontController {
247
  remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
248
  remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
249
  remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
250
- add_filter( 'emoji_svg_url', array( 'HMW_Classes_Tools', 'returnFalse' ));
251
 
252
  // filter to remove TinyMCE emojis
253
  add_filter( 'tiny_mce_plugins', array( $this, 'disable_emojicons_tinymce' ) );
@@ -305,6 +307,18 @@ class HMW_Controllers_Rewrite extends HMW_Classes_FrontController {
305
  remove_action( 'wp_head', 'wp_shortlink_wp_head' );
306
  }
307
 
 
 
 
 
 
 
 
 
 
 
 
 
308
 
309
  /**
310
  * Disable the commend from W3 Total Cache
37
  add_action( 'login_init', array( $this->model, 'login_init' ), 1 );
38
  add_filter( 'login_redirect', array( $this->model, 'sanitize_login_redirect' ), 9, 3 );
39
  add_filter( 'wp_redirect', array( $this->model, 'sanitize_redirect' ), PHP_INT_MAX, 2 );
40
+ add_filter( 'wp_redirect', array( $this->model, 'loopCheck' ), PHP_INT_MAX, 1 );
 
 
 
41
 
42
  add_action( 'login_head', array( $this->model, 'login_head' ), PHP_INT_MAX );
43
  add_action( 'wp_logout', array( $this->model, 'wp_logout' ), PHP_INT_MAX );
145
 
146
  if ( ! is_admin() ) {
147
  if ( HMW_Classes_Tools::getOption( 'hmw_hide_version' ) ) {
148
+ add_filter( 'the_generator', '__return_false', 99, 1 );
149
  remove_action( 'wp_head', 'wp_generator' );
150
  remove_action( 'wp_head', 'wp_resource_hints', 2 );
151
  }
165
  }
166
 
167
  if ( HMW_Classes_Tools::getOption( 'hmw_disable_xmlrpc' ) ) {
168
+ add_filter( 'xmlrpc_enabled', '__return_false' );
169
  }
170
 
171
  if ( HMW_Classes_Tools::getOption( 'hmw_disable_embeds' ) ) {
173
  $this->disable_embeds();
174
  }
175
 
176
+ if ( HMW_Classes_Tools::getOption( 'hmw_hide_version' ) ) {
177
+ add_filter( 'script_loader_src', array( $this, 'remove_version' ), 15, 1 );
178
+ add_filter( 'style_loader_src', array( $this, 'remove_version' ), 15, 1 );
179
+ }
180
+
181
  //Windows Live Write
182
  if ( HMW_Classes_Tools::getOption( 'hmw_disable_manifest' ) ) {
183
  //disable the embeds
249
  remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
250
  remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
251
  remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
252
+ add_filter( 'emoji_svg_url', '__return_false' );
253
 
254
  // filter to remove TinyMCE emojis
255
  add_filter( 'tiny_mce_plugins', array( $this, 'disable_emojicons_tinymce' ) );
307
  remove_action( 'wp_head', 'wp_shortlink_wp_head' );
308
  }
309
 
310
+ /**
311
+ * Remove the version for all JS and CSS
312
+ *
313
+ * @param $src
314
+ *
315
+ * @return mixed
316
+ */
317
+ public function remove_version( $src ) {
318
+ $parts = explode( '?', $src );
319
+
320
+ return $parts[0];
321
+ }
322
 
323
  /**
324
  * Disable the commend from W3 Total Cache
index.php CHANGED
@@ -6,7 +6,7 @@
6
  Plugin Name: Hide My WP Ghost Lite
7
  Plugin URI: https://wordpress.org/plugins/hide-my-wp/
8
  Description: The best solution for WordPress Security. Hide wp-admin, wp-login, wp-content, plugins, themes etc. Add Firewall, Brute Force protection & more. <br /> <a href="https://hidemywpghost.com/wordpress" target="_blank"><strong>Unlock all features</strong></a>
9
- Version: 4.0.10
10
  Author: WPPlugins - WordPress Security Plugins
11
  Author URI: https://wpplugins.tips
12
  License: GPLv2 or later
@@ -16,7 +16,7 @@
16
  */
17
 
18
  if (defined( 'NONCE_KEY' ) && defined( 'ABSPATH' ) && ! defined( 'HMW_VERSION' ) ) {
19
- define( 'HMW_VERSION', '4.0.10' );
20
  /* Call config files */
21
  require( dirname( __FILE__ ) . '/debug/index.php' );
22
  require( dirname( __FILE__ ) . '/config/config.php' );
6
  Plugin Name: Hide My WP Ghost Lite
7
  Plugin URI: https://wordpress.org/plugins/hide-my-wp/
8
  Description: The best solution for WordPress Security. Hide wp-admin, wp-login, wp-content, plugins, themes etc. Add Firewall, Brute Force protection & more. <br /> <a href="https://hidemywpghost.com/wordpress" target="_blank"><strong>Unlock all features</strong></a>
9
+ Version: 4.0.09
10
  Author: WPPlugins - WordPress Security Plugins
11
  Author URI: https://wpplugins.tips
12
  License: GPLv2 or later
16
  */
17
 
18
  if (defined( 'NONCE_KEY' ) && defined( 'ABSPATH' ) && ! defined( 'HMW_VERSION' ) ) {
19
+ define( 'HMW_VERSION', '4.0.09' );
20
  /* Call config files */
21
  require( dirname( __FILE__ ) . '/debug/index.php' );
22
  require( dirname( __FILE__ ) . '/config/config.php' );
models/Compatibility.php CHANGED
@@ -37,17 +37,6 @@ class HMW_Models_Compatibility {
37
  */
38
  public function checkCompatibilityOnLoad() {
39
 
40
- if ( HMW_Classes_Tools::isPluginActive( 'ithemes-security-pro/ithemes-security-pro.php' ) ||
41
- HMW_Classes_Tools::isPluginActive( 'better-wp-security/better-wp-security.php' )) {
42
- $settings = get_option('itsec-storage');
43
- if(isset($settings['hide-backend']['enabled']) && $settings['hide-backend']['enabled']) {
44
- if ( isset( $settings['hide-backend']['slug'] ) && $settings['hide-backend']['slug'] <> '' ) {
45
- defined( 'HMW_DEFAULT_LOGIN' ) || define( 'HMW_DEFAULT_LOGIN', $settings['hide-backend']['slug'] );
46
- HMW_Classes_Tools::$options['hmw_login_url'] = HMW_Classes_Tools::$default['hmw_login_url'];
47
- }
48
- }
49
- }
50
-
51
  if ( ! is_admin() ) {
52
 
53
  try {
@@ -94,8 +83,8 @@ class HMW_Models_Compatibility {
94
  //Chech if the users set to change for logged users users
95
  //don't let cache plugins to change the paths is not needed
96
  if ( ! HMW_Classes_Tools::doChangesAdmin() ) {
97
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnFalse' ) );
98
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnFalse' ) );
99
 
100
  return;
101
  }
@@ -118,7 +107,7 @@ class HMW_Models_Compatibility {
118
 
119
  //Compatibility with WP-rocket plugin
120
  if ( HMW_Classes_Tools::isPluginActive( 'wp-rocket/wp-rocket.php' ) ) {
121
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnFalse' ) );
122
 
123
  add_filter( 'rocket_buffer', array(
124
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
@@ -140,16 +129,16 @@ class HMW_Models_Compatibility {
140
 
141
  //Compatibility with CDN Enabler
142
  if ( HMW_Classes_Tools::isPluginActive( 'hummingbird-performance/wp-hummingbird.php' ) ) {
143
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnTrue' ) );
144
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
145
 
146
  return;
147
  }
148
 
149
  //Compatibility with Wp Super Cache Plugin
150
  if ( HMW_Classes_Tools::isPluginActive( 'wp-super-cache/wp-cache.php' ) ) {
151
- //add_filter('hmw_laterload', array('HMW_Classes_Tools', 'returnFalse'));
152
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
153
 
154
  add_filter( 'wpsupercache_buffer', array(
155
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
@@ -161,8 +150,8 @@ class HMW_Models_Compatibility {
161
 
162
  //Compatibility with CDN Enabler
163
  if ( HMW_Classes_Tools::isPluginActive( 'cdn-enabler/cdn-enabler.php' ) ) {
164
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnTrue' ) );
165
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
166
 
167
  return;
168
  }
@@ -170,15 +159,15 @@ class HMW_Models_Compatibility {
170
 
171
  //Compatibility with Autoptimize plugin
172
  if ( HMW_Classes_Tools::isPluginActive( 'autoptimize/autoptimize.php' ) ) {
173
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnFalse' ) );
174
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
175
 
176
  return;
177
  }
178
 
179
  if ( HMW_Classes_Tools::isPluginActive( 'wp-asset-clean-up/wpacu.php' ) || HMW_Classes_Tools::isPluginActive( 'wp-asset-clean-up-pro/wpacu.php' ) ) {
180
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnFalse' ) );
181
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnFalse' ) );
182
 
183
  add_filter( 'wpacu_html_source', array(
184
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
@@ -190,8 +179,8 @@ class HMW_Models_Compatibility {
190
 
191
  //Patch for WOT Cache plugin
192
  if ( defined( 'WOT_VERSION' ) ) {
193
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnTrue' ) );
194
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
195
 
196
  add_filter( 'wot_cache', array(
197
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
@@ -210,16 +199,16 @@ class HMW_Models_Compatibility {
210
  }
211
 
212
  if ( HMW_Classes_Tools::isPluginActive( 'cache-enabler/cache-enabler.php' ) ) {
213
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnFalse' ) );
214
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
215
 
216
  return;
217
  }
218
 
219
  //Compatibility with Wp Fastest Cache
220
  if ( HMW_Classes_Tools::isPluginActive( 'wp-fastest-cache/wpFastestCache.php' ) ) {
221
- add_filter( 'hmw_laterload', array( 'HMW_Classes_Tools', 'returnTrue' ) );
222
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
223
 
224
  return;
225
  }
@@ -229,7 +218,7 @@ class HMW_Models_Compatibility {
229
  global $powered_cache_options;
230
 
231
  if ( apply_filters( 'powered_cache_lazy_load_enabled', true ) ) {
232
- add_filter( 'hmw_process_buffer', array( 'HMW_Classes_Tools', 'returnTrue' ) );
233
  }
234
 
235
  add_filter( 'powered_cache_page_caching_buffer', array(
@@ -246,7 +235,7 @@ class HMW_Models_Compatibility {
246
  //Compatibility with W3 Total cache
247
  if ( HMW_Classes_Tools::isPluginActive( 'w3-total-cache/w3-total-cache.php' ) ) {
248
  //Don't show comments
249
- add_filter( 'w3tc_can_print_comment', array( 'HMW_Classes_Tools', 'returnFalse' ), PHP_INT_MAX );
250
 
251
  return;
252
  }
37
  */
38
  public function checkCompatibilityOnLoad() {
39
 
 
 
 
 
 
 
 
 
 
 
 
40
  if ( ! is_admin() ) {
41
 
42
  try {
83
  //Chech if the users set to change for logged users users
84
  //don't let cache plugins to change the paths is not needed
85
  if ( ! HMW_Classes_Tools::doChangesAdmin() ) {
86
+ add_filter( 'hmw_laterload', '__return_false' );
87
+ add_filter( 'hmw_process_buffer', '__return_false' );
88
 
89
  return;
90
  }
107
 
108
  //Compatibility with WP-rocket plugin
109
  if ( HMW_Classes_Tools::isPluginActive( 'wp-rocket/wp-rocket.php' ) ) {
110
+ add_filter( 'hmw_process_buffer', '__return_false' );
111
 
112
  add_filter( 'rocket_buffer', array(
113
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
129
 
130
  //Compatibility with CDN Enabler
131
  if ( HMW_Classes_Tools::isPluginActive( 'hummingbird-performance/wp-hummingbird.php' ) ) {
132
+ add_filter( 'hmw_laterload', '__return_true' );
133
+ add_filter( 'hmw_process_buffer', '__return_true' );
134
 
135
  return;
136
  }
137
 
138
  //Compatibility with Wp Super Cache Plugin
139
  if ( HMW_Classes_Tools::isPluginActive( 'wp-super-cache/wp-cache.php' ) ) {
140
+
141
+ add_filter( 'hmw_process_buffer', '__return_true' );
142
 
143
  add_filter( 'wpsupercache_buffer', array(
144
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
150
 
151
  //Compatibility with CDN Enabler
152
  if ( HMW_Classes_Tools::isPluginActive( 'cdn-enabler/cdn-enabler.php' ) ) {
153
+ add_filter( 'hmw_laterload', '__return_true' );
154
+ add_filter( 'hmw_process_buffer', '__return_true' );
155
 
156
  return;
157
  }
159
 
160
  //Compatibility with Autoptimize plugin
161
  if ( HMW_Classes_Tools::isPluginActive( 'autoptimize/autoptimize.php' ) ) {
162
+ add_filter( 'hmw_laterload', '__return_false' );
163
+ add_filter( 'hmw_process_buffer', '__return_true' );
164
 
165
  return;
166
  }
167
 
168
  if ( HMW_Classes_Tools::isPluginActive( 'wp-asset-clean-up/wpacu.php' ) || HMW_Classes_Tools::isPluginActive( 'wp-asset-clean-up-pro/wpacu.php' ) ) {
169
+ add_filter( 'hmw_process_buffer', '__return_false' );
170
+ add_filter( 'hmw_laterload', '__return_false' );
171
 
172
  add_filter( 'wpacu_html_source', array(
173
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
179
 
180
  //Patch for WOT Cache plugin
181
  if ( defined( 'WOT_VERSION' ) ) {
182
+ add_filter( 'hmw_laterload', '__return_true' );
183
+ add_filter( 'hmw_process_buffer', '__return_true' );
184
 
185
  add_filter( 'wot_cache', array(
186
  HMW_Classes_ObjController::getClass( 'HMW_Models_Rewrite' ),
199
  }
200
 
201
  if ( HMW_Classes_Tools::isPluginActive( 'cache-enabler/cache-enabler.php' ) ) {
202
+ add_filter( 'hmw_laterload', '__return_false' );
203
+ add_filter( 'hmw_process_buffer', '__return_true' );
204
 
205
  return;
206
  }
207
 
208
  //Compatibility with Wp Fastest Cache
209
  if ( HMW_Classes_Tools::isPluginActive( 'wp-fastest-cache/wpFastestCache.php' ) ) {
210
+ add_filter( 'hmw_laterload', '__return_true' );
211
+ add_filter( 'hmw_process_buffer', '__return_true' );
212
 
213
  return;
214
  }
218
  global $powered_cache_options;
219
 
220
  if ( apply_filters( 'powered_cache_lazy_load_enabled', true ) ) {
221
+ add_filter( 'hmw_process_buffer', '__return_true' );
222
  }
223
 
224
  add_filter( 'powered_cache_page_caching_buffer', array(
235
  //Compatibility with W3 Total cache
236
  if ( HMW_Classes_Tools::isPluginActive( 'w3-total-cache/w3-total-cache.php' ) ) {
237
  //Don't show comments
238
+ add_filter( 'w3tc_can_print_comment', '__return_false', PHP_INT_MAX );
239
 
240
  return;
241
  }
readme.txt CHANGED
@@ -305,14 +305,10 @@ Enjoy!
305
  8. Run a security check for your website and see all the vulnerabilities
306
 
307
  == Changelog ==
308
- = 4.0.10 (31 Aug 2020 ) =
309
- * Fixed some errors cause by the last version
310
-
311
  = 4.0.09 (27 Aug 2020 ) =
312
  * Update - Added the version hook to remove the versions from CSS and JS
313
  * Update - Load the login on WPEngine server with PHP7.4 when the login is set as /login
314
  * Update - Detect Flywheel server and add the rules accordingly
315
- * Update - Compatibility with IThemes Security on custom login
316
 
317
  = 4.0.08 (13 Aug 2020 ) =
318
  * Update - WordPress Security Updates for WP 5.5
305
  8. Run a security check for your website and see all the vulnerabilities
306
 
307
  == Changelog ==
 
 
 
308
  = 4.0.09 (27 Aug 2020 ) =
309
  * Update - Added the version hook to remove the versions from CSS and JS
310
  * Update - Load the login on WPEngine server with PHP7.4 when the login is set as /login
311
  * Update - Detect Flywheel server and add the rules accordingly
 
312
 
313
  = 4.0.08 (13 Aug 2020 ) =
314
  * Update - WordPress Security Updates for WP 5.5
view/Permalinks.php CHANGED
@@ -119,7 +119,7 @@ if ( defined( 'HMW_DISABLE' ) && HMW_DISABLE ) {
119
  <h3 class="card-title bg-brown text-white p-2"><?php _e( 'Admin Settings', _HMW_PLUGIN_NAME_ ); ?>:</h3>
120
  <div class="card-body">
121
  <?php if ( defined( 'HMW_DEFAULT_ADMIN' ) && HMW_DEFAULT_ADMIN ) {
122
- echo ' <div class="text-danger col-sm-12 border-bottom border-light py-3 mx-0 my-3">' . sprintf( __( 'Your admin URL is changed by another plugin/theme in %s. To activate this option, disable the custom admin in the other plugin or deativate it.', _HMW_PLUGIN_NAME_ ), '<strong>' . HMW_DEFAULT_ADMIN . '</strong>' ) . '</div>';
123
  echo '<input type="hidden" name="hmw_admin_url" value="' . HMW_Classes_Tools::$default['hmw_admin_url'] . '"/>';
124
  } else {
125
  if ( HMW_Classes_Tools::isGodaddy() ) {
@@ -171,7 +171,7 @@ if ( defined( 'HMW_DISABLE' ) && HMW_DISABLE ) {
171
  <h3 class="card-title bg-brown text-white p-2"><?php _e( 'Login Settings', _HMW_PLUGIN_NAME_ ); ?>:</h3>
172
  <div class="card-body">
173
  <?php if ( defined( 'HMW_DEFAULT_LOGIN' ) && HMW_DEFAULT_LOGIN ) {
174
- echo ' <div class="text-danger col-sm-12 border-bottom border-light py-3 mx-0 my-3">' . sprintf( __( 'Your login URL is changed by another plugin/theme in %s. To activate this option, disable the custom login in the other plugin or deativate it.', _HMW_PLUGIN_NAME_ ), '<strong>' . HMW_DEFAULT_LOGIN . '</strong>' ) . '</div>';
175
  } else {
176
  ?>
177
  <div class="col-sm-12 row border-bottom border-light py-3 mx-1 my-3">
119
  <h3 class="card-title bg-brown text-white p-2"><?php _e( 'Admin Settings', _HMW_PLUGIN_NAME_ ); ?>:</h3>
120
  <div class="card-body">
121
  <?php if ( defined( 'HMW_DEFAULT_ADMIN' ) && HMW_DEFAULT_ADMIN ) {
122
+ echo ' <div class="text-danger col-sm-12 border-bottom border-light py-3 mx-0 my-3">' . sprintf( __( 'Your admin URL is changed by another plugin/theme in %s. To prevent errors, deactivate the other plugin who changes the admin path.', _HMW_PLUGIN_NAME_ ), '<strong>' . HMW_DEFAULT_ADMIN . '</strong>' ) . '</div>';
123
  echo '<input type="hidden" name="hmw_admin_url" value="' . HMW_Classes_Tools::$default['hmw_admin_url'] . '"/>';
124
  } else {
125
  if ( HMW_Classes_Tools::isGodaddy() ) {
171
  <h3 class="card-title bg-brown text-white p-2"><?php _e( 'Login Settings', _HMW_PLUGIN_NAME_ ); ?>:</h3>
172
  <div class="card-body">
173
  <?php if ( defined( 'HMW_DEFAULT_LOGIN' ) && HMW_DEFAULT_LOGIN ) {
174
+ echo ' <div class="text-danger col-sm-12 border-bottom border-light py-3 mx-0 my-3">' . sprintf( __( 'Your login URL is changed by another plugin/theme in %s. To prevent errors, deactivate the other plugin who changes the login path.', _HMW_PLUGIN_NAME_ ), '<strong>' . HMW_DEFAULT_LOGIN . '</strong>' ) . '</div>';
175
  } else {
176
  ?>
177
  <div class="col-sm-12 row border-bottom border-light py-3 mx-1 my-3">
view/js/settings.js CHANGED
@@ -225,7 +225,7 @@
225
  });
226
 
227
  $('#frontend_test_modal').on('hidden.bs.modal', function () {
228
- $('button.frontend_test').hmw_loading(true);
229
  location.reload();
230
  })
231
 
225
  });
226
 
227
  $('#frontend_test_modal').on('hidden.bs.modal', function () {
228
+ $('button[data-target=#frontend_test_modal]').hmw_loading(true);
229
  location.reload();
230
  })
231