Version Description
- Improved description for Test Rewrite procedure, when the server fails to provide a valid response, rewrite engine is not active or the custom urls are not allowd.
- Fixed Undefined Property Notice
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.6.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.3.1
- include/admin-interface.class.php +1 -1
- include/functions.class.php +7 -2
- include/wph.class.php +1 -1
- readme.txt +5 -1
- wp-hide.php +1 -1
include/admin-interface.class.php
CHANGED
@@ -98,7 +98,7 @@
|
|
98 |
{
|
99 |
|
100 |
?>
|
101 |
-
<div class="start-container title test
|
102 |
<h2><?php _e( "Checking your environment ..", 'wp-hide-security-enhancer' ) ?></h2>
|
103 |
</div>
|
104 |
<div class="container-description environment-notices">
|
98 |
{
|
99 |
|
100 |
?>
|
101 |
+
<div class="start-container title test">
|
102 |
<h2><?php _e( "Checking your environment ..", 'wp-hide-security-enhancer' ) ?></h2>
|
103 |
</div>
|
104 |
<div class="container-description environment-notices">
|
include/functions.class.php
CHANGED
@@ -1032,7 +1032,7 @@
|
|
1032 |
$messages['manual_check'] .= __( "Sample result, can be different from a browser to another:", 'wp-hide-security-enhancer' ) . '<br /><img src="' . WPH_URL . '/assets/images/rewrite-test-json-response.jpg" /><br />';
|
1033 |
$messages['manual_check'] .= __( "The Ignore action will be available until the next plugin options update.", 'wp-hide-security-enhancer' ) . '<br /><br />';
|
1034 |
$messages['manual_check'] .= __( "If the Test URL is not functional, the plugin will fail to provide specific features. Check your Hosting provider for more details regarding rewrites and how to activate on your account.", 'wp-hide-security-enhancer' ) . '<br />';
|
1035 |
-
|
1036 |
if ( is_array( $response ) )
|
1037 |
{
|
1038 |
|
@@ -1088,12 +1088,17 @@
|
|
1088 |
return $response_message;
|
1089 |
}
|
1090 |
|
1091 |
-
if ( ! empty ($response['response']['code'] ) )
|
1092 |
{
|
1093 |
$response_message = __( "The wp_remote_get() returns a", 'wp-hide-security-enhancer' ) . " " . $response['response']['code'] . " " . __( "error code", 'wp-hide-security-enhancer' );
|
1094 |
if ( ! empty ($response['response']['message'] ) )
|
1095 |
$response_message .= ":" . $response['response']['message'];
|
1096 |
|
|
|
|
|
|
|
|
|
|
|
1097 |
return $response_message;
|
1098 |
}
|
1099 |
|
1032 |
$messages['manual_check'] .= __( "Sample result, can be different from a browser to another:", 'wp-hide-security-enhancer' ) . '<br /><img src="' . WPH_URL . '/assets/images/rewrite-test-json-response.jpg" /><br />';
|
1033 |
$messages['manual_check'] .= __( "The Ignore action will be available until the next plugin options update.", 'wp-hide-security-enhancer' ) . '<br /><br />';
|
1034 |
$messages['manual_check'] .= __( "If the Test URL is not functional, the plugin will fail to provide specific features. Check your Hosting provider for more details regarding rewrites and how to activate on your account.", 'wp-hide-security-enhancer' ) . '<br />';
|
1035 |
+
|
1036 |
if ( is_array( $response ) )
|
1037 |
{
|
1038 |
|
1088 |
return $response_message;
|
1089 |
}
|
1090 |
|
1091 |
+
if ( ! empty ( $response['response']['code'] ) )
|
1092 |
{
|
1093 |
$response_message = __( "The wp_remote_get() returns a", 'wp-hide-security-enhancer' ) . " " . $response['response']['code'] . " " . __( "error code", 'wp-hide-security-enhancer' );
|
1094 |
if ( ! empty ($response['response']['message'] ) )
|
1095 |
$response_message .= ":" . $response['response']['message'];
|
1096 |
|
1097 |
+
$messages['server_check'] = __( "A custom rewrite line has been inserted into your rewrite file for testing, the ", 'wp-hide-security-enhancer' ) . '<b><a target="_blank" href="' . $test_url . '">' . __( "Test URL", 'wp-hide-security-enhancer' ) . '</a></b> '. __( "expected to return a JSON response (contains a name and description) The server instead replied a", 'wp-hide-security-enhancer' ) . ' <b class="highlight">' . $response['response']['code'] . '</b> ' . __( "error with the message", 'wp-hide-security-enhancer' ) . ' <b class="highlight">' . $response['response']['message'] . '</b><br />';
|
1098 |
+
$messages['server_check'] .= __( "You need to get in touch with your server support for a fix, the rewrite engine is either disabled for your account or their internal set-up does not allow such rewrites. ", 'wp-hide-security-enhancer' );
|
1099 |
+
|
1100 |
+
$response_message .= '<br />' . $messages['server_check'];
|
1101 |
+
|
1102 |
return $response_message;
|
1103 |
}
|
1104 |
|
include/wph.class.php
CHANGED
@@ -406,7 +406,7 @@
|
|
406 |
if ( $screen->parent_base != 'wp-hide' )
|
407 |
{
|
408 |
|
409 |
-
if( $this->
|
410 |
{
|
411 |
?><div class='error'><?php include ( WPH_PATH . 'include/admin-interfaces/notice-server-not-supported.php' );?></div><?php
|
412 |
}
|
406 |
if ( $screen->parent_base != 'wp-hide' )
|
407 |
{
|
408 |
|
409 |
+
if( $this->server_htaccess_config === FALSE && $this->server_web_config === FALSE)
|
410 |
{
|
411 |
?><div class='error'><?php include ( WPH_PATH . 'include/admin-interfaces/notice-server-not-supported.php' );?></div><?php
|
412 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.7
|
7 |
-
Stable tag: 1.6.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide WordPress default paths, wp-content, wp-includes, wp-admin, login URL, plugins, themes etc. Block the defaults for being still accessible. No files and data are changed on your server.
|
@@ -349,6 +349,10 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
349 |
|
350 |
== Changelog ==
|
351 |
|
|
|
|
|
|
|
|
|
352 |
= 1.6.3 =
|
353 |
* Server Environment Check to ensure there are no rewrite issues and the plugin can be safely deployed.
|
354 |
* Interactive feedback with hints and explanations for environment issues.
|
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.7
|
7 |
+
Stable tag: 1.6.3.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide WordPress default paths, wp-content, wp-includes, wp-admin, login URL, plugins, themes etc. Block the defaults for being still accessible. No files and data are changed on your server.
|
349 |
|
350 |
== Changelog ==
|
351 |
|
352 |
+
= 1.6.3.1 =
|
353 |
+
* Improved description for Test Rewrite procedure, when the server fails to provide a valid response, rewrite engine is not active or the custom urls are not allowd.
|
354 |
+
* Fixed Undefined Property Notice
|
355 |
+
|
356 |
= 1.6.3 =
|
357 |
* Server Environment Check to ensure there are no rewrite issues and the plugin can be safely deployed.
|
358 |
* Interactive feedback with hints and explanations for environment issues.
|
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.3
|
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.3.1
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|