WP Hide & Security Enhancer - Version 1.5.7

Version Description

  • Autoptimize css/js cache and minify compatibility
  • Wp Hummingbird and WP Hummingbird PRO assets cache compatibility
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 WP Hide & Security Enhancer
Version 1.5.7
Comparing to
See all releases

Code changes from version 1.5.6.9 to 1.5.7

compatibility/autoptimize.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Plugin Compatibility : Autoptimize
5
+ * Introduced at version : 2.5.0
6
+ */
7
+
8
+
9
+ class WPH_conflict_handle_autoptimize
10
+ {
11
+
12
+ static function init()
13
+ {
14
+ if( ! self::is_plugin_active())
15
+ return FALSE;
16
+
17
+ add_filter( 'autoptimize_css_after_minify', array( 'WPH_conflict_handle_autoptimize', 'autoptimize_css_after_minify' ), 999);
18
+ add_filter( 'autoptimize_js_after_minify', array( 'WPH_conflict_handle_autoptimize', 'autoptimize_js_after_minify' ), 999);
19
+
20
+ }
21
+
22
+ static function is_plugin_active()
23
+ {
24
+
25
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
26
+
27
+ if(is_plugin_active( 'autoptimize/autoptimize.php' ))
28
+ return TRUE;
29
+ else
30
+ return FALSE;
31
+ }
32
+
33
+ static public function autoptimize_css_after_minify( $code )
34
+ {
35
+ global $wph;
36
+
37
+ //applay the replacements
38
+ $code = $wph->ob_start_callback( $code );
39
+
40
+ return $code;
41
+
42
+ }
43
+
44
+ static public function autoptimize_js_after_minify( $code )
45
+ {
46
+ global $wph;
47
+
48
+ //applay the replacements
49
+ $code = $wph->ob_start_callback( $code );
50
+
51
+ return $code;
52
+
53
+ }
54
+
55
+ }
56
+
57
+
58
+ ?>
compatibility/wp-hummingbird.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class WPH_conflict_handle_hummingbird
5
+ {
6
+
7
+ static function init()
8
+ {
9
+ add_action('plugins_loaded', array('WPH_conflict_handle_hummingbird', 'run') , -1);
10
+ }
11
+
12
+ static function is_plugin_active()
13
+ {
14
+
15
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
16
+
17
+ if( is_plugin_active( 'wp-hummingbird/wp-hummingbird.php' ) || is_plugin_active( 'hummingbird-performance/wp-hummingbird.php' ))
18
+ return TRUE;
19
+ else
20
+ return FALSE;
21
+ }
22
+
23
+ static public function run()
24
+ {
25
+ if( ! self::is_plugin_active())
26
+ return FALSE;
27
+
28
+ add_filter( 'wphb_minify_file_content', array( 'WPH_conflict_handle_hummingbird', 'wphb_minify_file_content' ) );
29
+
30
+ }
31
+
32
+ static public function wphb_minify_file_content( $content )
33
+ {
34
+
35
+ global $wph;
36
+
37
+ $content = $wph->functions->content_urls_replacement( $content, $wph->functions->get_replacement_list() );
38
+
39
+ return $content;
40
+ }
41
+
42
+
43
+ }
44
+
45
+
46
+ ?>
include/class.compatibility.php CHANGED
@@ -75,6 +75,14 @@
75
  include_once(WPH_PATH . 'compatibility/wps-hide-login.php');
76
  WPH_conflict_wps_hide_login::init();
77
 
 
 
 
 
 
 
 
 
78
  /**
79
  * Themes
80
  */
75
  include_once(WPH_PATH . 'compatibility/wps-hide-login.php');
76
  WPH_conflict_wps_hide_login::init();
77
 
78
+ //Hummingbird
79
+ include_once(WPH_PATH . 'compatibility/wp-hummingbird.php');
80
+ WPH_conflict_handle_hummingbird::init();
81
+
82
+ //Autoptimize
83
+ include_once(WPH_PATH . 'compatibility/autoptimize.php');
84
+ WPH_conflict_handle_autoptimize::init();
85
+
86
  /**
87
  * Themes
88
  */
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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: 5.1.1
7
- Stable tag: 1.5.6.9
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
@@ -292,6 +292,10 @@ Please get in touch with us and we'll do our best to include it for a next versi
292
 
293
  == Changelog ==
294
 
 
 
 
 
295
  = 1.5.6.9 =
296
  * New functionality: Remove Link Header
297
 
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: 5.2
7
+ Stable tag: 1.5.7
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
292
 
293
  == Changelog ==
294
 
295
+ = 1.5.7 =
296
+ * Autoptimize css/js cache and minify compatibility
297
+ * Wp Hummingbird and WP Hummingbird PRO assets cache compatibility
298
+
299
  = 1.5.6.9 =
300
  * New functionality: Remove Link Header
301
 
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":"dani","mapped_name":"eereer2"},"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
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.7
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */