Version Description
- DOMDocument encoding fix for remove styles links attribute
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.3.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.3.3.1
- modules/components/general-styles.php +6 -3
- readme.txt +4 -1
- wp-hide.php +2 -2
modules/components/general-styles.php
CHANGED
@@ -92,9 +92,10 @@
|
|
92 |
$doc = new DOMDocument();
|
93 |
$doc->preserveWhiteSpace = true;
|
94 |
|
95 |
-
if ( @$doc->loadHTML($buffer) === false )
|
96 |
return $buffer;
|
97 |
|
|
|
98 |
$doc->formatOutput = true;
|
99 |
|
100 |
$xpath = new DOMXPath($doc);
|
@@ -107,8 +108,10 @@
|
|
107 |
{
|
108 |
$node->removeAttribute('id');
|
109 |
}
|
110 |
-
|
111 |
-
$
|
|
|
|
|
112 |
|
113 |
return $buffer;
|
114 |
|
92 |
$doc = new DOMDocument();
|
93 |
$doc->preserveWhiteSpace = true;
|
94 |
|
95 |
+
if ( @$doc->loadHTML(mb_convert_encoding($buffer, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD) === false )
|
96 |
return $buffer;
|
97 |
|
98 |
+
$doc->encoding = 'UTF-8';
|
99 |
$doc->formatOutput = true;
|
100 |
|
101 |
$xpath = new DOMXPath($doc);
|
108 |
{
|
109 |
$node->removeAttribute('id');
|
110 |
}
|
111 |
+
|
112 |
+
$doc->normalizeDocument();
|
113 |
+
|
114 |
+
$buffer = $doc->saveHTML( $dom->documentElement );
|
115 |
|
116 |
return $buffer;
|
117 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.nsp-code.com/donate.php
|
|
4 |
Tags: hide, security, improve security, hacking, wp hide, wordpress hide, custom login url, wp-loging.php, ap-admin
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.5.3
|
7 |
-
Stable tag: 1.3.3
|
8 |
|
9 |
Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
10 |
|
@@ -206,6 +206,9 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
206 |
|
207 |
== Changelog ==
|
208 |
|
|
|
|
|
|
|
209 |
= 1.3.3 =
|
210 |
* Improve Remove Generator Meta - Use DOMDocument to remove any meta generator tag
|
211 |
* New Component Item - Remove X-Pingback Header
|
4 |
Tags: hide, security, improve security, hacking, wp hide, wordpress hide, custom login url, wp-loging.php, ap-admin
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.5.3
|
7 |
+
Stable tag: 1.3.3.1
|
8 |
|
9 |
Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
10 |
|
206 |
|
207 |
== Changelog ==
|
208 |
|
209 |
+
= 1.3.3.1 =
|
210 |
+
* DOMDocument encoding fix for remove styles links attribute
|
211 |
+
|
212 |
= 1.3.3 =
|
213 |
* Improve Remove Generator Meta - Use DOMDocument to remove any meta generator tag
|
214 |
* New Component Item - Remove X-Pingback Header
|
wp-hide.php
CHANGED
@@ -5,14 +5,14 @@ Plugin URI: http://www.nsp-code.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.3.3
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
12 |
|
13 |
|
14 |
define('WPH_PATH', plugin_dir_path(__FILE__));
|
15 |
-
define('WPH_VERSION', '1.3.3');
|
16 |
|
17 |
//load language files
|
18 |
add_action( 'plugins_loaded', 'WPH_load_textdomain');
|
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.3.3.1
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
12 |
|
13 |
|
14 |
define('WPH_PATH', plugin_dir_path(__FILE__));
|
15 |
+
define('WPH_VERSION', '1.3.3.1');
|
16 |
|
17 |
//load language files
|
18 |
add_action( 'plugins_loaded', 'WPH_load_textdomain');
|