Version Description
- Fix: Call for invalid method WP_Error::has_errors()
- Fix: Attempt to clear Opcache if API not being restricted
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.5.6.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.6.7 to 1.5.6.8
- include/functions.class.php +2 -2
- include/wph.class.php +25 -5
- modules/components/rewrite-new_theme_path.php +1 -1
- readme.txt +5 -1
- router/environment.php +1 -1
- wp-hide.php +1 -1
include/functions.class.php
CHANGED
@@ -2472,8 +2472,8 @@
|
|
2472 |
if (function_exists('w3tc_flush_all'))
|
2473 |
w3tc_flush_all();
|
2474 |
|
2475 |
-
if (function_exists('opcache_reset'))
|
2476 |
-
opcache_reset();
|
2477 |
|
2478 |
if ( function_exists( 'rocket_clean_domain' ) )
|
2479 |
rocket_clean_domain();
|
2472 |
if (function_exists('w3tc_flush_all'))
|
2473 |
w3tc_flush_all();
|
2474 |
|
2475 |
+
if (function_exists('opcache_reset') && ! ini_get( 'opcache.restrict_api' ) )
|
2476 |
+
@opcache_reset();
|
2477 |
|
2478 |
if ( function_exists( 'rocket_clean_domain' ) )
|
2479 |
rocket_clean_domain();
|
include/wph.class.php
CHANGED
@@ -873,14 +873,34 @@
|
|
873 |
|
874 |
$process_interface_save_errors = array();
|
875 |
|
876 |
-
if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->
|
877 |
{
|
878 |
delete_transient( 'wph-process_set_static_environment_errors' );
|
879 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
$process_interface_save_errors[] = array( 'type' => 'error',
|
881 |
-
'message' => __('Unable to create environment static file. The system returned the following error: ', 'wp-hide-security-enhancer') . $
|
|
|
882 |
);
|
883 |
-
set_transient( 'wph-process_set_static_environment_errors', $process_interface_save_errors,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
|
885 |
return;
|
886 |
}
|
@@ -891,7 +911,7 @@
|
|
891 |
delete_transient( 'wph-process_set_static_environment_errors' );
|
892 |
|
893 |
$process_interface_save_errors[] = array( 'type' => 'error',
|
894 |
-
'message' => __('Unable to create environment static file. Is ', 'wp-hide-security-enhancer') . WPH_PATH . 'router/ ' . __('writable', 'wp-hide-security-enhancer') . '? <b>Remove description header from Style file</b> and <b>Child - Remove description header from Style file</b> ' . __('will not work correctly, so where turned off.', 'wp-hide-security-enhancer')
|
895 |
);
|
896 |
|
897 |
//disable certain options
|
@@ -904,7 +924,7 @@
|
|
904 |
//regenerate permalinks
|
905 |
$this->settings_changed();
|
906 |
|
907 |
-
set_transient( 'wph-process_set_static_environment_errors', $process_interface_save_errors,
|
908 |
}
|
909 |
else
|
910 |
{
|
873 |
|
874 |
$process_interface_save_errors = array();
|
875 |
|
876 |
+
if ( is_wp_error( $wp_filesystem->errors ) && isset($wp_filesystem->errors->errors) && is_array($wp_filesystem->errors->errors) && count ( $wp_filesystem->errors->errors ) > 0 )
|
877 |
{
|
878 |
delete_transient( 'wph-process_set_static_environment_errors' );
|
879 |
|
880 |
+
$all_error_messages = array();
|
881 |
+
if ( isset($wp_filesystem->errors->errors) && is_array($wp_filesystem->errors->errors) )
|
882 |
+
{
|
883 |
+
foreach ( (array) $wp_filesystem->errors->errors as $code => $messages )
|
884 |
+
{
|
885 |
+
$all_error_messages = array_merge( $all_error_messages, $messages );
|
886 |
+
}
|
887 |
+
}
|
888 |
+
|
889 |
$process_interface_save_errors[] = array( 'type' => 'error',
|
890 |
+
'message' => __('Unable to create environment static file. The system returned the following error: ', 'wp-hide-security-enhancer') . implode(". ", $all_error_messages ) .
|
891 |
+
'<br /><b>Remove description header from Style file</b> and <b>Child - Remove description header from Style file</b> ' . __('will not work correctly, so where turned off.', 'wp-hide-security-enhancer')
|
892 |
);
|
893 |
+
set_transient( 'wph-process_set_static_environment_errors', $process_interface_save_errors, 0 );
|
894 |
+
|
895 |
+
//disable certain options
|
896 |
+
$this->settings['module_settings']['style_file_clean'] = 'no';
|
897 |
+
$this->settings['module_settings']['child_style_file_clean'] = 'no';
|
898 |
+
|
899 |
+
//save the new options
|
900 |
+
$this->functions->update_settings($this->settings);
|
901 |
+
|
902 |
+
//regenerate permalinks
|
903 |
+
$this->settings_changed();
|
904 |
|
905 |
return;
|
906 |
}
|
911 |
delete_transient( 'wph-process_set_static_environment_errors' );
|
912 |
|
913 |
$process_interface_save_errors[] = array( 'type' => 'error',
|
914 |
+
'message' => __('Unable to create environment static file. Is ', 'wp-hide-security-enhancer') . WPH_PATH . 'router/ ' . __('writable', 'wp-hide-security-enhancer') . '? <br /><b>Remove description header from Style file</b> and <b>Child - Remove description header from Style file</b> ' . __('will not work correctly, so where turned off.', 'wp-hide-security-enhancer')
|
915 |
);
|
916 |
|
917 |
//disable certain options
|
924 |
//regenerate permalinks
|
925 |
$this->settings_changed();
|
926 |
|
927 |
+
set_transient( 'wph-process_set_static_environment_errors', $process_interface_save_errors, 0 );
|
928 |
}
|
929 |
else
|
930 |
{
|
modules/components/rewrite-new_theme_path.php
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
__('Strip out all meta data from style file e.g. Theme Name, Theme URI, Author etc. Those are important information to find out possible theme security breaches.', 'wp-hide-security-enhancer') . '<br />' .
|
53 |
__('This feature may not work if style file url not available on html (being concatenated).', 'wp-hide-security-enhancer'),
|
54 |
'',
|
55 |
-
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('This use caching. If active, cache clear is recommended on styles
|
56 |
),
|
57 |
|
58 |
'input_type' => 'radio',
|
52 |
__('Strip out all meta data from style file e.g. Theme Name, Theme URI, Author etc. Those are important information to find out possible theme security breaches.', 'wp-hide-security-enhancer') . '<br />' .
|
53 |
__('This feature may not work if style file url not available on html (being concatenated).', 'wp-hide-security-enhancer'),
|
54 |
'',
|
55 |
+
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('This use caching. If active, cache clear is recommended on styles updates.', 'wp-hide-security-enhancer') .'</span> <a href="admin.php?page=wp-hide&wph_cache_clear=true" class="button action">Cache Clear</a></div>'
|
56 |
),
|
57 |
|
58 |
'input_type' => 'radio',
|
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.1.1
|
7 |
-
Stable tag: 1.5.6.
|
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
|
@@ -291,6 +291,10 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
291 |
|
292 |
== Changelog ==
|
293 |
|
|
|
|
|
|
|
|
|
294 |
= 1.5.6.7 =
|
295 |
* Allow internal cron jobs to run even if wp-cron.php is blocked.
|
296 |
* Check with wp_filesystem for any errors and output the messages, before attempt to write any content
|
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.1.1
|
7 |
+
Stable tag: 1.5.6.8
|
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
|
291 |
|
292 |
== Changelog ==
|
293 |
|
294 |
+
= 1.5.6.8 =
|
295 |
+
* Fix: Call for invalid method WP_Error::has_errors()
|
296 |
+
* Fix: Attempt to clear Opcache if API not being restricted
|
297 |
+
|
298 |
= 1.5.6.7 =
|
299 |
* Allow internal cron jobs to run even if wp-cron.php is blocked.
|
300 |
* Check with wp_filesystem for any errors and output the messages, before attempt to write any content
|
router/environment.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2 |
$environment_variable = '{"theme":{"folder_name":"twentynineteen","mapped_name":"eereer"},"allowed_paths":["F:\/htdocs\/wp-hide.dev\/wp-content\/themes"],"cache_path":"F:\/htdocs\/wp-hide.dev\/wp-content\/cache\/wph\/","wordpress_directory":"","site_relative_path":"\/"}' ?>
|
1 |
+
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2 |
$environment_variable = '{"theme":{"folder_name":"twentynineteen","mapped_name":"eereer"},"allowed_paths":["F:\/htdocs\/wp-hide.dev\/wp-content\/themes"],"cache_path":"F:\/htdocs\/wp-hide.dev\/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.5.6.
|
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.5.6.8
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|