Version Description
- Updated MU Loader, if there's no plugin active avoid to receive any notice.
- Allow new wp-login.php
- PRO version available
- Check if there's a 'message' key for arguments set through wp_mail filter
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.4.9 |
Comparing to | |
See all releases |
Code changes from version 1.4.8.2 to 1.4.9
- include/functions.class.php +3 -2
- include/update.class.php +9 -1
- include/wph.class.php +14 -8
- modules/components/admin-new_wp_login_php.php +2 -4
- modules/components/general-html.php +1 -1
- mu-loader/wp-hide-loader.php +2 -2
- readme.txt +12 -3
- router/environment.php +1 -1
- wp-hide.php +1 -1
include/functions.class.php
CHANGED
@@ -2439,8 +2439,9 @@
|
|
2439 |
</div>
|
2440 |
|
2441 |
</div>
|
2442 |
-
<p><?php _e('Help us to improve this plugin by sending any improvement suggestions and reporting any issues at ', 'wp-hide-security-enhancer') ?><a target="_blank" href="
|
2443 |
-
<
|
|
|
2444 |
|
2445 |
<div class="clear"></div>
|
2446 |
</div><?php
|
2439 |
</div>
|
2440 |
|
2441 |
</div>
|
2442 |
+
<p><?php _e('Help us to improve this plugin by sending any improvement suggestions and reporting any issues at ', 'wp-hide-security-enhancer') ?><a target="_blank" href="https://www.wp-hide.com/">www.wp-hide.com</a></p>
|
2443 |
+
<h4><?php _e('Did you know there is a PRO version of this plug-in?', 'wp-hide-security-enhancer') ?> <a target="_blank" href="https://www.wp-hide.com/wp-hide-pro-now-available/">Read more</a></h4>
|
2444 |
+
<p><?php _e('Did you find this plugin useful? Please support our work by spread the word about the code, or write an article about the plugin in your blog with a link to development site', 'wp-hide-security-enhancer') ?> <a href="https://www.wp-hide.com/" target="_blank"><strong>https://www.wp-hide.com/</strong></a></p>
|
2445 |
|
2446 |
<div class="clear"></div>
|
2447 |
</div><?php
|
include/update.class.php
CHANGED
@@ -205,7 +205,15 @@
|
|
205 |
}
|
206 |
|
207 |
$version = '1.4.7.8';
|
208 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
|
211 |
//check for triggered flush rules
|
205 |
}
|
206 |
|
207 |
$version = '1.4.7.8';
|
208 |
+
}
|
209 |
+
|
210 |
+
if(version_compare($version, '1.4.8.3', '<'))
|
211 |
+
{
|
212 |
+
//copy over the new mu-loader version
|
213 |
+
WPH_functions::copy_mu_loader( TRUE );
|
214 |
+
|
215 |
+
$version = '1.4.8.3';
|
216 |
+
}
|
217 |
|
218 |
|
219 |
//check for triggered flush rules
|
include/wph.class.php
CHANGED
@@ -139,14 +139,15 @@
|
|
139 |
add_filter('flush_rewrite_rules_hard', array($this, 'flush_rewrite_rules_hard'), 999);
|
140 |
|
141 |
//IIS7 server
|
142 |
-
add_filter('iis7_url_rewrite_rules',
|
143 |
|
144 |
//on switch theme
|
145 |
-
add_action('switch_theme',
|
146 |
|
147 |
//admin notices
|
148 |
-
add_action( 'admin_notices',
|
149 |
-
|
|
|
150 |
$this->is_initialised = TRUE;
|
151 |
}
|
152 |
|
@@ -339,6 +340,11 @@
|
|
339 |
{
|
340 |
global $wp_rewrite;
|
341 |
|
|
|
|
|
|
|
|
|
|
|
342 |
if(! $this->functions->is_muloader())
|
343 |
{
|
344 |
echo "<div class='error'><p>". __('Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please make sure this location is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
|
@@ -349,11 +355,10 @@
|
|
349 |
{
|
350 |
echo "<div class='error'><p>". __('Permalink is required to be turned ON for WP Hide & Security Enhancer to work', 'wp-hide-security-enhancer') ."</p></div>";
|
351 |
}
|
352 |
-
|
353 |
-
|
354 |
if($this->server_htaccess_config === FALSE && $this->server_web_config === FALSE)
|
355 |
{
|
356 |
-
echo "<div class='error'><p>". __(
|
357 |
}
|
358 |
|
359 |
|
@@ -1189,7 +1194,8 @@
|
|
1189 |
function apply_for_wp_mail($atts)
|
1190 |
{
|
1191 |
|
1192 |
-
|
|
|
1193 |
|
1194 |
return $atts;
|
1195 |
|
139 |
add_filter('flush_rewrite_rules_hard', array($this, 'flush_rewrite_rules_hard'), 999);
|
140 |
|
141 |
//IIS7 server
|
142 |
+
add_filter('iis7_url_rewrite_rules', array($this, 'iis7_url_rewrite_rules'), 999);
|
143 |
|
144 |
//on switch theme
|
145 |
+
add_action('switch_theme', array($this, 'switch_theme'));
|
146 |
|
147 |
//admin notices
|
148 |
+
add_action( 'admin_notices', array(&$this, 'admin_notices'));
|
149 |
+
add_action( 'network_admin_notices', array(&$this, 'admin_notices'));
|
150 |
+
|
151 |
$this->is_initialised = TRUE;
|
152 |
}
|
153 |
|
340 |
{
|
341 |
global $wp_rewrite;
|
342 |
|
343 |
+
if ( is_multisite() )
|
344 |
+
{
|
345 |
+
echo "<div class='error'><p>". __("This plugin version can't handle MultiSite environment, please check with PRO version at", 'wp-hide-security-enhancer') . ' <a target="_blank" href="https://www.wp-hide.com/wp-hide-pro-now-available/">WP-Hide PRO</a></p></div>';
|
346 |
+
}
|
347 |
+
|
348 |
if(! $this->functions->is_muloader())
|
349 |
{
|
350 |
echo "<div class='error'><p>". __('Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please make sure this location is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
|
355 |
{
|
356 |
echo "<div class='error'><p>". __('Permalink is required to be turned ON for WP Hide & Security Enhancer to work', 'wp-hide-security-enhancer') ."</p></div>";
|
357 |
}
|
358 |
+
|
|
|
359 |
if($this->server_htaccess_config === FALSE && $this->server_web_config === FALSE)
|
360 |
{
|
361 |
+
echo "<div class='error'><p>". __("<b>WP Hide</b> This plugin version can't handle this server type, please check with PRO version at", 'wp-hide-security-enhancer') . ' <a target="_blank" href="https://www.wp-hide.com/wp-hide-pro-now-available/">WP-Hide PRO</a></p></div>';
|
362 |
}
|
363 |
|
364 |
|
1194 |
function apply_for_wp_mail($atts)
|
1195 |
{
|
1196 |
|
1197 |
+
if ( isset ($atts['message'] ) )
|
1198 |
+
$atts['message'] = $this->functions->content_urls_replacement($atts['message'], $this->functions->get_replacement_list() );
|
1199 |
|
1200 |
return $atts;
|
1201 |
|
modules/components/admin-new_wp_login_php.php
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
),
|
23 |
'input_type' => 'text',
|
24 |
|
25 |
-
'sanitize_type' => array(array($this->wph->functions, 'sanitize_file_path_name')
|
26 |
'processing_order' => 50
|
27 |
|
28 |
);
|
@@ -131,9 +131,7 @@
|
|
131 |
|
132 |
|
133 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-login.php', FALSE, FALSE );
|
134 |
-
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE
|
135 |
-
|
136 |
-
$text = '';
|
137 |
|
138 |
if($this->wph->server_htaccess_config === TRUE)
|
139 |
{
|
22 |
),
|
23 |
'input_type' => 'text',
|
24 |
|
25 |
+
'sanitize_type' => array(array($this->wph->functions, 'sanitize_file_path_name')),
|
26 |
'processing_order' => 50
|
27 |
|
28 |
);
|
131 |
|
132 |
|
133 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-login.php', FALSE, FALSE );
|
134 |
+
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE );
|
|
|
|
|
135 |
|
136 |
if($this->wph->server_htaccess_config === TRUE)
|
137 |
{
|
modules/components/general-html.php
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
$this->module_settings[] = array(
|
36 |
'id' => 'remove_html_new_lines',
|
37 |
'label' => 'Minify',
|
38 |
-
'description' => __('Minify HTML, Inline Styles, Inline JavaScripts.', 'wp-hide-security-enhancer'),
|
39 |
|
40 |
'input_type' => 'radio',
|
41 |
'options' => array(
|
35 |
$this->module_settings[] = array(
|
36 |
'id' => 'remove_html_new_lines',
|
37 |
'label' => 'Minify',
|
38 |
+
'description' => __('Minify HTML, Inline Styles, Inline JavaScripts. Minify JavaScript might produce errors for specific plugins.', 'wp-hide-security-enhancer'),
|
39 |
|
40 |
'input_type' => 'radio',
|
41 |
'options' => array(
|
mu-loader/wp-hide-loader.php
CHANGED
@@ -14,13 +14,13 @@
|
|
14 |
return FALSE;
|
15 |
|
16 |
//check if the plugin is active
|
17 |
-
$active_plugins = get_option('active_plugins');
|
18 |
if( !in_array( 'wp-hide-security-enhancer/wp-hide.php' , $active_plugins) )
|
19 |
return FALSE;
|
20 |
|
21 |
define('WPH_PATH', trailingslashit( dirname( WP_PLUGIN_DIR . '/wp-hide-security-enhancer/wp-hide.php' ) ) );
|
22 |
define('WPH_MULOADER', TRUE);
|
23 |
-
define('WPH_MULOADER_VERSION', '1.3.
|
24 |
|
25 |
include_once(WPH_PATH . '/include/wph.class.php');
|
26 |
include_once(WPH_PATH . '/include/functions.class.php');
|
14 |
return FALSE;
|
15 |
|
16 |
//check if the plugin is active
|
17 |
+
$active_plugins = (array)get_option('active_plugins');
|
18 |
if( !in_array( 'wp-hide-security-enhancer/wp-hide.php' , $active_plugins) )
|
19 |
return FALSE;
|
20 |
|
21 |
define('WPH_PATH', trailingslashit( dirname( WP_PLUGIN_DIR . '/wp-hide-security-enhancer/wp-hide.php' ) ) );
|
22 |
define('WPH_MULOADER', TRUE);
|
23 |
+
define('WPH_MULOADER_VERSION', '1.3.3');
|
24 |
|
25 |
include_once(WPH_PATH . '/include/wph.class.php');
|
26 |
include_once(WPH_PATH . '/include/functions.class.php');
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
===
|
2 |
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: 4.9.
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
|
@@ -16,6 +16,9 @@ The **easy way to completely hide your WordPress** core files, login page, theme
|
|
16 |
**No file and directory change!**
|
17 |
No file and directory is being changed anywhere, everything is processed virtually! The plugin code use URL rewrite techniques and WordPress filters to apply all internal functionality and features. Everything is done automatically, there's no user intervention require at all.
|
18 |
|
|
|
|
|
|
|
19 |
Change the default WordPress login urls from wp-admin and wp-login.php to something totally arbitrary. No one will ever know where to try to guess a login and hack into your site. Totally invisible !!
|
20 |
|
21 |
[vimeo http://vimeo.com/185046480]
|
@@ -264,6 +267,12 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
264 |
|
265 |
== Changelog ==
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
= 1.4.8.2 =
|
268 |
* WPML compatibility when use different domains for each language
|
269 |
* Replaced google social as it produced some JavaScript errors.
|
1 |
+
=== WP Hide & Security Enhancer ===
|
2 |
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: 4.9.5
|
7 |
+
Stable tag: 1.4.9
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
|
16 |
**No file and directory change!**
|
17 |
No file and directory is being changed anywhere, everything is processed virtually! The plugin code use URL rewrite techniques and WordPress filters to apply all internal functionality and features. Everything is done automatically, there's no user intervention require at all.
|
18 |
|
19 |
+
**Real hide of WordPress core files and plugins**
|
20 |
+
The plugin not only allow to change default urls of you WordPress, but it hide/block defaults! Many similar code, just change the slugs, but the default are still accessible, obliviously revealing WordPress as CMS
|
21 |
+
|
22 |
Change the default WordPress login urls from wp-admin and wp-login.php to something totally arbitrary. No one will ever know where to try to guess a login and hack into your site. Totally invisible !!
|
23 |
|
24 |
[vimeo http://vimeo.com/185046480]
|
267 |
|
268 |
== Changelog ==
|
269 |
|
270 |
+
= 1.4.9 =
|
271 |
+
* Updated MU Loader, if there's no plugin active avoid to receive any notice.
|
272 |
+
* Allow new wp-login.php
|
273 |
+
* PRO version available
|
274 |
+
* Check if there's a 'message' key for arguments set through wp_mail filter
|
275 |
+
|
276 |
= 1.4.8.2 =
|
277 |
* WPML compatibility when use different domains for each language
|
278 |
* Replaced google social as it produced some JavaScript errors.
|
router/environment.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2 |
-
$environment_variable = '{"theme":{"folder_name":"
|
1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2 |
+
$environment_variable = '{"theme":{"folder_name":"twentysixteen","mapped_name":"jd_content\/themes\/theme_name"},"allowed_paths":["F:\/htdocs\/wp-hide-demo\/wp-content\/themes"],"cache_path":"F:\/htdocs\/wp-hide-demo\/wp-content\/cache\/wph\/","wordpress_directory":"","site_relative_path":"\/"}' ?>
|
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.4.
|
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.4.9
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|