WP Hide & Security Enhancer - Version 1.6.0.4

Version Description

  • Purge cache for Fast Velocity Minify plugin, when clearing internal cache
  • Return new admin slug when calling admin_url() and if default admin is customized
  • Use no-protocol when loading the files, to ensure they are being loaded over current domain protocol
  • BuddyPress compatibility file update
  • Elementor compatibility file update
  • ShortPixel Adaptive Images compatibility file update
  • WooCommerce compatibility file update
  • WP Rocket compatibility file update
  • New compatibility file for Fast Velocity Minify
  • New compatibility file for LiteSpeed Cache
  • New compatibility file for Swift Performance
  • New compatibility file for WP Speed of Light
Download this release

Release Info

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

Code changes from version 1.6 to 1.6.0.4

compatibility/buddypress.php CHANGED
@@ -1,6 +1,12 @@
1
  <?php
2
 
 
 
 
 
3
 
 
 
4
  class WPH_conflict_handle_BuddyPress
5
  {
6
 
@@ -8,14 +14,7 @@
8
  {
9
  if( ! self::is_plugin_active())
10
  return false;
11
-
12
- //add bufer filtering for sueprcache plugin
13
- //trigger only on admin
14
- if(is_admin())
15
- {
16
- add_filter('wp-hide/loaded_modules', array('WPH_conflict_handle_BuddyPress', 'loaded_modules'), 999);
17
- }
18
-
19
  //adjust bp_core_avatar_url
20
  add_filter('bp_core_avatar_url', array('WPH_conflict_handle_BuddyPress', 'bp_core_avatar_url'), 999);
21
 
@@ -37,44 +36,14 @@
37
 
38
 
39
  }
40
-
41
- static function loaded_modules( $modules )
42
- {
43
- //iterate all modules and seek for "remove_other_generator_meta"
44
- foreach($modules as $block_key => $block)
45
- {
46
- foreach($block->components as $module_key => $module)
47
- {
48
- foreach($module->module_settings as $component_key => $component)
49
- {
50
-
51
- if(!isset($component['id']))
52
- continue;
53
-
54
- /**
55
- if($component['id'] == 'styles_remove_id_attribute')
56
- {
57
- $modules[$block_key]->components[$module_key]->module_settings[$component_key]['description'] .= '<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('This setting produce a conflict with BuddyPress and should be kept disabled.', 'wp-hide-security-enhancer') . '</span></div>';
58
- }
59
- */
60
-
61
- }
62
- }
63
- }
64
-
65
- return $modules;
66
-
67
- }
68
 
69
  static function bp_core_avatar_url( $url )
70
  {
71
  global $wph;
72
-
73
- //retrieve the replacements list
74
- $replacement_list = $wph->functions->get_replacement_list();
75
-
76
  //do replacements for this url
77
- $url = $wph->functions->content_urls_replacement($url, $wph->functions->get_replacement_list() );
78
 
79
  return $url;
80
 
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: BuddyPress
5
+ * Compatibility checked on Version:
6
+ */
7
 
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
  class WPH_conflict_handle_BuddyPress
11
  {
12
 
14
  {
15
  if( ! self::is_plugin_active())
16
  return false;
17
+
 
 
 
 
 
 
 
18
  //adjust bp_core_avatar_url
19
  add_filter('bp_core_avatar_url', array('WPH_conflict_handle_BuddyPress', 'bp_core_avatar_url'), 999);
20
 
36
 
37
 
38
  }
39
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  static function bp_core_avatar_url( $url )
42
  {
43
  global $wph;
44
+
 
 
 
45
  //do replacements for this url
46
+ $url = $wph->functions->content_urls_replacement( $url, $wph->functions->get_replacement_list() );
47
 
48
  return $url;
49
 
compatibility/cache-enabler.php CHANGED
@@ -1,11 +1,12 @@
1
  <?php
2
 
3
- /**
4
- * Compatibility for Plugin Name: Cache Enabler
5
- * Compatibility checked on Version: 1.3.4
6
- */
7
-
8
 
 
 
9
  class WPH_conflict_handle_cache_enabler
10
  {
11
 
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: Cache Enabler
5
+ * Compatibility checked on Version: 1.3.4
6
+ */
 
7
 
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
  class WPH_conflict_handle_cache_enabler
11
  {
12
 
compatibility/elementor.php CHANGED
@@ -1,10 +1,12 @@
1
  <?php
2
 
3
- /**
4
- * Compatibility for Plugin Name: Elementor
5
- * Compatibility checked on Version: 2.5.16
6
- */
7
 
 
 
8
  use Elementor\Core\Files\Manager as Files_Manager;
9
 
10
  class WPH_conflict_elementor
@@ -19,6 +21,8 @@
19
 
20
  add_action( 'wph/settings_changed', array( 'WPH_conflict_elementor', 'settings_changed') );
21
 
 
 
22
  }
23
 
24
  static function is_plugin_active()
@@ -43,6 +47,18 @@
43
 
44
 
45
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
 
48
  }
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: Elementor
5
+ * Compatibility checked on Version: 2.5.16
6
+ */
7
 
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
  use Elementor\Core\Files\Manager as Files_Manager;
11
 
12
  class WPH_conflict_elementor
21
 
22
  add_action( 'wph/settings_changed', array( 'WPH_conflict_elementor', 'settings_changed') );
23
 
24
+ //filter the urls of the outputed widget content since there's no way to catch the outrputed buffer, elementor does this on it's own..
25
+ add_filter( 'elementor/widget/render_content', array( 'WPH_conflict_elementor', 'elementor_widget_render_content'), 999, 2);
26
  }
27
 
28
  static function is_plugin_active()
47
 
48
 
49
 
50
+ static function elementor_widget_render_content( $widget_content, $class )
51
+ {
52
+ global $wph;
53
+
54
+ //do replacements for this url
55
+ $widget_content = $wph->functions->content_urls_replacement( $widget_content, $wph->functions->get_replacement_list() );
56
+
57
+ return $widget_content;
58
+ }
59
+
60
+
61
+
62
 
63
 
64
  }
compatibility/fast-velocity-minfy.php ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Plugin Compatibility : Fast Velocity Minify
5
+ * Introduced at version : 2.5.8
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
+ class WPH_conflict_handle_fast_velocity_minify
11
+ {
12
+
13
+ var $wph;
14
+
15
+ function __construct()
16
+ {
17
+ if( ! $this->is_plugin_active())
18
+ return FALSE;
19
+
20
+ global $wph;
21
+
22
+ $this->wph = $wph;
23
+
24
+ add_action('fvm_get_url', array ( $this, 'fvm_get_url' ), 99 );
25
+
26
+ add_action('wp_print_styles', array ( $this, 'update_styles_src' ), -99 );
27
+ add_action('wp_print_footer_scripts', array ( $this, 'update_styles_src' ), -99 );
28
+
29
+ add_action('wp_print_scripts', array ( $this, 'update_scripts_src' ), 5 );
30
+ add_action('wp_print_footer_scripts', array ( $this, 'update_scripts_src' ), 9.999998 );
31
+
32
+ add_filter( 'fvm_after_download_and_minify_code', array ( $this, 'process_buffer'), 99, 2 );
33
+
34
+ }
35
+
36
+ function is_plugin_active()
37
+ {
38
+
39
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
40
+
41
+ if(is_plugin_active( 'fast-velocity-minify/fvm.php' ))
42
+ return TRUE;
43
+ else
44
+ return FALSE;
45
+ }
46
+
47
+
48
+
49
+ function fvm_get_url( $url )
50
+ {
51
+
52
+ $url = $this->wph->functions->content_urls_replacement( $url, $this->wph->functions->get_replacement_list() );
53
+
54
+ return $url;
55
+
56
+ }
57
+
58
+ /**
59
+ * The plugin retrieve the assets using URLs not PATH, so ensure the urls are updated before retrieving any file
60
+ *
61
+ */
62
+ function update_styles_src()
63
+ {
64
+
65
+ global $wp_styles;
66
+
67
+ if ( ! is_object ( $wp_styles ) || ! is_array ( $wp_styles->registered ) )
68
+ return;
69
+
70
+ $repalcement_list = $this->wph->functions->get_replacement_list();
71
+
72
+ foreach ( $wp_styles->registered as $handle => $data )
73
+ {
74
+ if ( ! isset ( $data->src ) || is_bool( $data->src ) || empty ( $data->src ) )
75
+ continue;
76
+
77
+ //if inline, process the code
78
+ if ( isset( $wp_styles->registered[$handle]->extra['after']) && is_array ( $wp_styles->registered[$handle]->extra[ 'after' ] ) )
79
+ {
80
+ foreach ( $wp_styles->registered[$handle]->extra['after'] as $key => $value )
81
+ {
82
+ if ( empty ( $value ) )
83
+ continue;
84
+
85
+ $wp_styles->registered[$handle]->extra['after'][ $key ] = $this->process_buffer( $value, 'css' );
86
+ }
87
+ }
88
+
89
+ }
90
+ }
91
+
92
+
93
+ /**
94
+ * The plugin retrieve the assets using URLs not PATH, so ensure the urls are updated before retrieving any file
95
+ *
96
+ */
97
+ function update_scripts_src()
98
+ {
99
+
100
+ global $wp_scripts;
101
+
102
+ if ( ! is_object ( $wp_scripts ) || ! is_array ( $wp_scripts->registered ) )
103
+ return;
104
+
105
+ $repalcement_list = $this->wph->functions->get_replacement_list();
106
+
107
+ foreach ( $wp_scripts->registered as $handle => $data )
108
+ {
109
+ if ( ! isset ( $data->src ) || is_bool( $data->src ) || empty ( $data->src ) )
110
+ continue;
111
+
112
+ //if inline, process the code
113
+ if ( isset( $wp_scripts->registered[$handle]->extra['after']) && is_array ( $wp_scripts->registered[$handle]->extra[ 'after' ] ) )
114
+ {
115
+ foreach ( $wp_scripts->registered[$handle]->extra['after'] as $key => $value )
116
+ {
117
+ if ( empty ( $value ) )
118
+ continue;
119
+
120
+ $wp_scripts->registered[$handle]->extra['after'][ $key ] = $this->process_buffer( $value, 'js' );
121
+ }
122
+ }
123
+ if ( isset( $wp_scripts->registered[$handle]->extra['before']) && is_array ( $wp_scripts->registered[$handle]->extra[ 'before' ] ) )
124
+ {
125
+ foreach ( $wp_scripts->registered[$handle]->extra['before'] as $key => $value )
126
+ {
127
+ if ( empty ( $value ) )
128
+ continue;
129
+
130
+ $wp_scripts->registered[$handle]->extra['before'][ $key ] = $this->process_buffer( $value, 'js' );
131
+ }
132
+ }
133
+
134
+
135
+ }
136
+ }
137
+
138
+
139
+
140
+ /**
141
+ * Process teh buffer before being saved locally
142
+ *
143
+ * @param mixed $uffer
144
+ * @param mixed $file_type
145
+ */
146
+ function process_buffer ( $buffer, $file_type )
147
+ {
148
+
149
+ switch ( $file_type )
150
+ {
151
+ case 'css' :
152
+ case 'text/css':
153
+ case 'application/x-javascript':
154
+ case 'js' :
155
+
156
+ $buffer = $this->wph->functions->content_urls_replacement( $buffer, $this->wph->functions->get_replacement_list() );
157
+
158
+
159
+ break;
160
+
161
+ default:
162
+
163
+ $buffer = $this->wph->ob_start_callback( $buffer );
164
+
165
+ break;
166
+ }
167
+
168
+ return $buffer;
169
+
170
+ }
171
+
172
+
173
+ }
174
+
175
+
176
+ new WPH_conflict_handle_fast_velocity_minify();
177
+
178
+ ?>
compatibility/litespeed-cache.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /**
5
+ * Compatibility for Plugin Name: LiteSpeed Cache
6
+ * Compatibility checked on Version: 3.2.3.2
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
+
11
+ class WPH_conflict_handle_litespeed_cache
12
+ {
13
+
14
+ var $wph;
15
+
16
+ function __construct()
17
+ {
18
+ if( ! $this->is_plugin_active() )
19
+ return FALSE;
20
+
21
+ global $wph;
22
+
23
+ $this->wph = $wph;
24
+
25
+ add_action('litespeed_optm_cssjs', array( $this, 'litespeed_optm_cssjs') , 999, 3 );
26
+ add_action('litespeed_ccss', array( $this, 'litespeed_optm_cssjs') , 999, 2 );
27
+
28
+ }
29
+
30
+ function is_plugin_active()
31
+ {
32
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
33
+
34
+ if(is_plugin_active( 'litespeed-cache/litespeed-cache.php' ))
35
+ return TRUE;
36
+ else
37
+ return FALSE;
38
+ }
39
+
40
+
41
+ function litespeed_optm_cssjs( $buffer, $file_type, $src_list = array() )
42
+ {
43
+ $buffer = $this->wph->functions->content_urls_replacement( $buffer, $this->wph->functions->get_replacement_list() );
44
+
45
+ return $buffer;
46
+ }
47
+
48
+
49
+ }
50
+
51
+
52
+ new WPH_conflict_handle_litespeed_cache();
53
+
54
+ ?>
compatibility/shortpixel-adaptive-images.php CHANGED
@@ -1,11 +1,12 @@
1
  <?php
2
 
3
- /**
4
- * Compatibility for Plugin Name: ShortPixel Adaptive Images
5
- * Compatibility checked on Version: 0.9.2
6
- */
7
-
8
 
 
 
9
  class WPH_conflict_shortpixel_ai
10
  {
11
 
@@ -66,20 +67,32 @@
66
  ob_start( array ( 'WPH_conflict_shortpixel_ai', 'maybe_replace_images_src' ) );
67
 
68
  }
69
-
 
70
  static function maybe_replace_images_src( $content )
 
 
 
 
 
 
 
71
  {
72
  global $wph;
73
 
74
- //retrieve the replacements list
75
- $replacement_list = $wph->functions->get_replacement_list();
76
 
77
- $content = $wph->functions->content_urls_replacement($content, $replacement_list );
78
-
79
- return $content;
 
 
 
 
 
 
80
  }
81
-
82
-
83
  }
84
 
85
 
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: ShortPixel Adaptive Images
5
+ * Compatibility checked on Version: 0.9.2
6
+ */
 
7
 
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
  class WPH_conflict_shortpixel_ai
11
  {
12
 
67
  ob_start( array ( 'WPH_conflict_shortpixel_ai', 'maybe_replace_images_src' ) );
68
 
69
  }
70
+
71
+
72
  static function maybe_replace_images_src( $content )
73
+ {
74
+ $content = preg_replace_callback( '/=("|\')([^"|\']+.(jpg|jpeg|png))/im', array( 'WPH_conflict_shortpixel_ai', '_replace_image_slug') , $content);
75
+
76
+ return $content;
77
+ }
78
+
79
+ static function _replace_image_slug( $match )
80
  {
81
  global $wph;
82
 
83
+ $found = $match[0];
 
84
 
85
+ $replacements = $wph->functions->get_replacement_list();
86
+
87
+ //do simple replacements
88
+ foreach($replacements as $replace => $replace_to)
89
+ {
90
+ $found = str_replace($replace, $replace_to, $found);
91
+ }
92
+
93
+ return $found;
94
  }
95
+
 
96
  }
97
 
98
 
compatibility/shortpixel-image-optimiser.php CHANGED
@@ -1,11 +1,12 @@
1
  <?php
2
 
3
- /**
4
- * Compatibility for Plugin Name: ShortPixel Image Optimizer
5
- * Compatibility checked on Version: 4.15.3
6
- */
7
-
8
 
 
 
9
  class WPH_conflict_shortpixel_image_optimizer
10
  {
11
 
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: ShortPixel Image Optimizer
5
+ * Compatibility checked on Version: 4.15.3
6
+ */
 
7
 
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
  class WPH_conflict_shortpixel_image_optimizer
11
  {
12
 
compatibility/swift-performance.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Compatibility for Plugin Name: Swift Performance
5
+ * Compatibility checked on Version:
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
+ class WPH_conflict_handle_swift_performance
11
+ {
12
+
13
+ static function init()
14
+ {
15
+ if( ! self::is_plugin_active())
16
+ return FALSE;
17
+
18
+ add_filter( 'swift_performance_buffer', array( 'WPH_conflict_handle_swift_performance' , 'swift_performance_buffer' ), 99 );
19
+
20
+ add_filter( 'swift_performance_css_content', array( 'WPH_conflict_handle_swift_performance' , 'swift_performance_css_content' ), 1, 2 );
21
+ add_filter( 'swift_performance_js_content', array( 'WPH_conflict_handle_swift_performance' , 'swift_performance_js_content' ), 1, 2 );
22
+
23
+ }
24
+
25
+ static function is_plugin_active()
26
+ {
27
+
28
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
29
+
30
+ if(is_plugin_active( 'swift-performance/performance.php' ))
31
+ return TRUE;
32
+ else
33
+ return FALSE;
34
+ }
35
+
36
+ static function swift_performance_buffer( $buffer )
37
+ {
38
+ global $wph;
39
+
40
+ $buffer = $wph->ob_start_callback( $buffer );
41
+
42
+ return $buffer;
43
+
44
+ }
45
+
46
+
47
+ static function swift_performance_css_content( $content, $key )
48
+ {
49
+ global $wph;
50
+
51
+ //retrieve the replacements list
52
+ $replacement_list = $wph->functions->get_replacement_list();
53
+
54
+ //replace the urls
55
+ $content = $wph->functions->content_urls_replacement( $content, $replacement_list );
56
+
57
+ return $content ;
58
+ }
59
+
60
+ static function swift_performance_js_content( $content )
61
+ {
62
+ global $wph;
63
+
64
+ //retrieve the replacements list
65
+ $replacement_list = $wph->functions->get_replacement_list();
66
+
67
+ //replace the urls
68
+ $content = $wph->functions->content_urls_replacement( $content, $replacement_list );
69
+
70
+ return $content ;
71
+ }
72
+
73
+ }
74
+
75
+ WPH_conflict_handle_swift_performance::init();
76
+
77
+
78
+ ?>
compatibility/w3-cache.php CHANGED
@@ -1,6 +1,12 @@
1
  <?php
2
 
3
-
 
 
 
 
 
 
4
  class WPH_conflict_handle_w3_cache
5
  {
6
 
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: WP Fastest Cache
5
+ * Compatibility checked on Version: 0.9.0.6
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
  class WPH_conflict_handle_w3_cache
11
  {
12
 
compatibility/woocommerce.php CHANGED
@@ -6,7 +6,11 @@
6
 
7
  static function init()
8
  {
9
- add_action('plugins_loaded', array('WPH_conflict_handle_woocommerce', 'run') , -1);
 
 
 
 
10
  }
11
 
12
  static function is_plugin_active()
6
 
7
  static function init()
8
  {
9
+ add_action('plugins_loaded', array('WPH_conflict_handle_woocommerce', 'run') , -1);
10
+
11
+ //check for block
12
+ if( isset( $_GET['wph-throw-404'] ) )
13
+ add_filter ('woocommerce_is_rest_api_request', '__return_false' );
14
  }
15
 
16
  static function is_plugin_active()
compatibility/wp-rocket.php CHANGED
@@ -1,26 +1,36 @@
1
  <?php
2
 
 
 
 
 
 
 
3
 
4
  class WPH_conflict_handle_wp_rocket
5
  {
6
-
7
- static function init()
 
8
  {
9
- if( ! self::is_plugin_active() || ! self::is_cache_processing() )
10
  return FALSE;
 
 
11
 
12
- add_filter( 'wp-hide/ignore_ob_start_callback', array( 'WPH_conflict_handle_wp_rocket', 'ignore_ob_start_callback'), 999, 2);
13
- add_filter( 'rocket_buffer', array( 'WPH_conflict_handle_wp_rocket', 'rocket_buffer'), 999 );
14
 
15
- add_filter( 'rocket_js_url', array( 'WPH_conflict_handle_wp_rocket', 'rocket_js_url'), 999 );
16
 
 
17
  /**
18
- * This filter will be introduced at a later verion on WP Rocket plugin ( >= 3.4 )..
 
19
  */
20
- add_filter( 'rocket_css_content', array( 'WPH_conflict_handle_wp_rocket', 'rocket_css_content'), 999 );
21
  }
22
 
23
- static function is_plugin_active()
24
  {
25
 
26
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
@@ -31,255 +41,48 @@
31
  return FALSE;
32
  }
33
 
34
- static function is_cache_processing()
35
- {
36
- // Don't cache robots.txt && .htaccess directory (it's happened sometimes with weird server configuration)
37
- if ( strstr( $_SERVER['REQUEST_URI'], 'robots.txt' ) || strstr( $_SERVER['REQUEST_URI'], '.htaccess' ) ) {
38
- return FALSE;
39
- }
40
-
41
- $request_uri = explode( '?', $_SERVER['REQUEST_URI'] );
42
- $request_uri = reset(( $request_uri ));
43
-
44
- // Don't cache disallowed extensions
45
- if ( strtolower( $_SERVER['REQUEST_URI'] ) != '/index.php' && in_array( pathinfo( $request_uri, PATHINFO_EXTENSION ), array( 'php', 'xml', 'xsl' ) ) ) {
46
- return FALSE;
47
- }
48
-
49
- // Don't cache if user is in admin
50
- if ( is_admin() ) {
51
- return FALSE;
52
- }
53
-
54
- if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
55
- return FALSE;
56
- }
57
-
58
- // Don't cache the customizer preview
59
- if ( isset( $_POST['wp_customize'] ) ) {
60
- return FALSE;
61
- }
62
-
63
- // Don't cache without GET method
64
- if ( ! isset( $_SERVER['REQUEST_METHOD'] ) || $_SERVER['REQUEST_METHOD'] != 'GET' ) {
65
- return FALSE;
66
- }
67
-
68
- // Get the correct config file
69
- $rocket_config_path = WP_CONTENT_DIR . '/wp-rocket-config/';
70
- $host = ( isset( $_SERVER['HTTP_HOST'] ) ) ? $_SERVER['HTTP_HOST'] : time();
71
- $host = trim( strtolower( $host ), '.' );
72
- $host = str_replace( array( '..', chr(0) ), '', $host );
73
-
74
- $continue = false;
75
- if ( file_exists( $rocket_config_path . $host . '.php' ) ) {
76
- include( $rocket_config_path . $host . '.php' );
77
- $continue = true;
78
- } else {
79
- $path = explode( '/' , trim( $_SERVER['REQUEST_URI'], '/' ) );
80
-
81
- foreach ( $path as $p ) {
82
- static $dir;
83
-
84
- if ( file_exists( $rocket_config_path . $host . '.' . $p . '.php' ) ) {
85
- include( $rocket_config_path . $host . '.' . $p .'.php' );
86
- $continue = true;
87
- break;
88
- }
89
-
90
- if( file_exists( $rocket_config_path . $host . '.' . $dir . $p . '.php' ) ) {
91
- include( $rocket_config_path . $host . '.' . $dir. $p . '.php' );
92
- $continue = true;
93
- break;
94
- }
95
-
96
- $dir .= $p . '.';
97
- }
98
- }
99
-
100
- // Exit if no config file is exist
101
- if ( ! $continue ) {
102
- return FALSE;
103
- }
104
-
105
- $request_uri = ( isset( $rocket_cache_query_strings ) && array_intersect( array_keys( $_GET ), $rocket_cache_query_strings ) ) || isset( $_GET['lp-variation-id'] ) || isset( $_GET['lang'] ) || isset( $_GET['s'] ) ? $_SERVER['REQUEST_URI'] : $request_uri;
106
-
107
- // Don't cache with variables
108
- // but the cache is enabled if the visitor comes from an RSS feed, an Facebook action or Google Adsence tracking
109
- // @since 2.3 Add query strings which can be cached via the options page.
110
- // @since 2.1 Add compatibilty with WordPress Landing Pages (permalink_name and lp-variation-id)
111
- // @since 2.1 Add compabitiliy with qTranslate and translation plugin with query string "lang"
112
- if ( ! empty( $_GET )
113
- && ( ! isset( $_GET['utm_source'], $_GET['utm_medium'], $_GET['utm_campaign'] ) )
114
- && ( ! isset( $_GET['utm_expid'] ) )
115
- && ( ! isset( $_GET['fb_action_ids'], $_GET['fb_action_types'], $_GET['fb_source'] ) )
116
- && ( ! isset( $_GET['gclid'] ) )
117
- && ( ! isset( $_GET['permalink_name'] ) )
118
- && ( ! isset( $_GET['lp-variation-id'] ) )
119
- && ( ! isset( $_GET['lang'] ) )
120
- && ( ! isset( $_GET['s'] ) )
121
- && ( ! isset( $_GET['age-verified'] ) )
122
- && ( ! isset( $rocket_cache_query_strings ) || ! array_intersect( array_keys( $_GET ), $rocket_cache_query_strings ) )
123
- ) {
124
- return FALSE;
125
- }
126
-
127
- // Don't cache SSL
128
- if ( ! isset( $rocket_cache_ssl ) && rocket_is_ssl() ) {
129
- return FALSE;
130
- }
131
-
132
- // Don't cache these pages
133
- if ( isset( $rocket_cache_reject_uri ) && preg_match( '#^(' . $rocket_cache_reject_uri . ')$#', $request_uri ) ) {
134
- return FALSE;
135
- }
136
-
137
- // Don't cache page with these cookies
138
- if ( isset( $rocket_cache_reject_cookies ) && preg_match( '#(' . $rocket_cache_reject_cookies . ')#', var_export( $_COOKIE, true ) ) ) {
139
- return FALSE;
140
- }
141
-
142
- $ip = self::get_ip();
143
- $allowed_ips = array(
144
- '85.17.131.209' => 0, // Pingdom Tools - Amsterdam
145
- '173.208.58.138' => 1, // Pingdom Tools - New-York
146
- '50.22.90.226' => 2, // Pingdom Tools - Dallas
147
- '209.58.131.213' => 3, // Pingdom Tools - San Jose
148
- '168.1.92.52' => 4, // Pingdom Tools - Melbourne
149
- '5.178.78.78' => 5 // Pingdom Tools - Stockholm
150
- );
151
-
152
- // Don't cache page when these cookies don't exist
153
- if ( ! isset( $allowed_ips[ $ip ] ) && isset( $rocket_cache_mandatory_cookies ) && ! preg_match( '#(' . $rocket_cache_mandatory_cookies . ')#', var_export( $_COOKIE, true ) ) ) {
154
- return FALSE;
155
- }
156
-
157
- // Don't cache page with these user agents
158
- if ( isset( $rocket_cache_reject_ua, $_SERVER['HTTP_USER_AGENT'] ) && preg_match( '#(' . $rocket_cache_reject_ua . ')#', $_SERVER['HTTP_USER_AGENT'] ) ) {
159
- return FALSE;
160
- }
161
-
162
- // Don't cache if mobile detection is activated
163
- if ( ! isset( $rocket_cache_mobile ) && isset( $_SERVER['HTTP_USER_AGENT'] ) && (preg_match('#^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).*#i', $_SERVER['HTTP_USER_AGENT']) || preg_match('#^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).*#i', substr($_SERVER['HTTP_USER_AGENT'], 0, 4))) ) {
164
- return FALSE;
165
- }
166
-
167
- return TRUE;
168
-
169
- }
170
-
171
 
172
- static function ignore_ob_start_callback( $do_ignore, $buffer )
173
  {
174
 
175
- /**
176
- * Allow to cache search results
177
- *
178
- * @since 2.3.8
179
- *
180
- * @param bool true will force caching search results
181
- */
182
- $rocket_cache_search = apply_filters( 'rocket_cache_search', false );
183
-
184
- /**
185
- * Allow to override the DONOTCACHEPAGE behavior.
186
- * To warn conflict with some plugins like Thrive Leads.
187
- *
188
- * @since 2.5
189
- *
190
- * @param bool true will force the override
191
- */
192
- $rocket_override_donotcachepage = apply_filters( 'rocket_override_donotcachepage', false );
193
-
194
- if ( strlen( $buffer ) > 255
195
- && ( function_exists( 'is_404' ) && ! is_404() ) // Don't cache 404
196
- && ( function_exists( 'is_search' ) && ! is_search() || $rocket_cache_search ) // Don't cache search results
197
- && ( ! defined( 'DONOTCACHEPAGE' ) || ! DONOTCACHEPAGE || $rocket_override_donotcachepage ) // Don't cache template that use this constant
198
- && function_exists( 'rocket_mkdir_p' )
199
- )
200
- return TRUE;
201
-
202
- return FALSE;
203
- }
204
-
205
- static function rocket_buffer( $buffer )
206
- {
207
-
208
- //remove the filter to allow the buffer processing
209
- remove_filter( 'wp-hide/ignore_ob_start_callback', array( 'WPH_conflict_handle_wp_rocket', 'ignore_ob_start_callback'), 999);
210
-
211
- global $wph;
212
-
213
- $buffer = $wph->ob_start_callback( $buffer );
214
 
215
  return $buffer;
216
 
217
  }
218
 
219
 
220
- static function get_ip()
221
- {
222
- $keys = array(
223
- 'HTTP_CF_CONNECTING_IP', // CF = CloudFlare.
224
- 'HTTP_CLIENT_IP',
225
- 'HTTP_X_FORWARDED_FOR',
226
- 'HTTP_X_FORWARDED',
227
- 'HTTP_X_CLUSTER_CLIENT_IP',
228
- 'HTTP_X_REAL_IP',
229
- 'HTTP_FORWARDED_FOR',
230
- 'HTTP_FORWARDED',
231
- 'REMOTE_ADDR',
232
- );
233
-
234
- foreach ( $keys as $key ) {
235
- if ( array_key_exists( $key, $_SERVER ) ) {
236
- $ip = explode( ',', $_SERVER[ $key ] );
237
- $ip = end( $ip );
238
-
239
- if ( false !== filter_var( $ip, FILTER_VALIDATE_IP ) ) {
240
- return $ip;
241
- }
242
- }
243
- }
244
-
245
- return '0.0.0.0';
246
- }
247
-
248
-
249
  /**
250
- * Replace static inline cached file urls
251
  *
252
  * @param mixed $url
253
  */
254
- static function rocket_js_url( $url )
255
  {
256
- global $wph;
257
 
258
  //retrieve the replacements list
259
- $replacement_list = $wph->functions->get_replacement_list();
260
-
261
- //replace the urls
262
- $url = $wph->functions->content_urls_replacement($url, $replacement_list );
263
 
264
- return $url ;
265
  }
266
 
267
 
268
 
269
- static public function rocket_css_content( $content )
 
 
 
 
 
270
  {
271
- global $wph;
272
 
273
- //retrieve the replacements list
274
- $replacement_list = $wph->functions->get_replacement_list();
275
-
276
- //replace the urls
277
- $content = $wph->functions->content_urls_replacement( $content, $replacement_list );
278
-
279
- return $content;
280
  }
281
-
282
  }
283
 
284
 
 
 
285
  ?>
1
  <?php
2
 
3
+ /**
4
+ * Compatibility for Plugin Name: Swift Performance
5
+ * Compatibility checked on Version:
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
 
10
  class WPH_conflict_handle_wp_rocket
11
  {
12
+ var $wph;
13
+
14
+ function __construct()
15
  {
16
+ if( ! $this->is_plugin_active() )
17
  return FALSE;
18
+
19
+ global $wph;
20
 
21
+ $this->wph = $wph;
 
22
 
23
+ add_filter( 'rocket_js_url', array( $this, 'rocket_js_url'), 999 );
24
 
25
+ add_filter( 'rocket_css_content', array( $this, 'rocket_css_content'), 999 );
26
  /**
27
+ *
28
+ * STILL THEY ARE MISSING A FILTER FOR JS Content !!!!!! ....
29
  */
30
+
31
  }
32
 
33
+ function is_plugin_active()
34
  {
35
 
36
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
41
  return FALSE;
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
+ function rocket_buffer( $buffer )
46
  {
47
 
48
+ $buffer = $this->wph->ob_start_callback( $buffer );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  return $buffer;
51
 
52
  }
53
 
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  /**
56
+ * Replace js urls
57
  *
58
  * @param mixed $url
59
  */
60
+ function rocket_js_url( $buffer )
61
  {
 
62
 
63
  //retrieve the replacements list
64
+ $buffer = $this->wph->functions->content_urls_replacement( $buffer, $this->wph->functions->get_replacement_list() );
 
 
 
65
 
66
+ return $buffer ;
67
  }
68
 
69
 
70
 
71
+ /**
72
+ * Process the Cache CSS content
73
+ *
74
+ * @param mixed $content
75
+ */
76
+ function rocket_css_content( $buffer )
77
  {
78
+ $buffer = $this->wph->functions->content_urls_replacement( $buffer, $this->wph->functions->get_replacement_list() );
79
 
80
+ return $buffer ;
 
 
 
 
 
 
81
  }
82
+
83
  }
84
 
85
 
86
+ new WPH_conflict_handle_wp_rocket();
87
+
88
  ?>
compatibility/wp-speed-of-light.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /**
5
+ * Compatibility for Plugin Name: WP Speed of Light
6
+ * Compatibility checked on Version: 2.6.4
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
+
11
+ class WPH_conflict_handle_wp_speed_of_light
12
+ {
13
+
14
+ var $wph;
15
+
16
+ function __construct()
17
+ {
18
+ if( ! $this->is_plugin_active())
19
+ return FALSE;
20
+
21
+ global $wph;
22
+
23
+ $this->wph = $wph;
24
+
25
+ add_filter('wpsol_before_cache', array( $this, 'wpsol_before_cache' ), 999);
26
+
27
+ //need filters to change the urls in the minified content!!!
28
+
29
+
30
+ }
31
+
32
+ function is_plugin_active()
33
+ {
34
+
35
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
36
+
37
+ if(is_plugin_active( 'wp-speed-of-light/wp-speed-of-light.php' ))
38
+ return TRUE;
39
+ else
40
+ return FALSE;
41
+ }
42
+
43
+
44
+ function wpsol_before_cache( $buffer )
45
+ {
46
+
47
+ $buffer = $this->wph->ob_start_callback( $buffer );
48
+
49
+ return $buffer;
50
+
51
+ }
52
+
53
+ }
54
+
55
+
56
+ new WPH_conflict_handle_wp_speed_of_light();
57
+
58
+ ?>
include/class.compatibility.php CHANGED
@@ -47,10 +47,7 @@
47
  include_once(WPH_PATH . 'compatibility/wp-fastest-cache.php');
48
  WPH_conflict_handle_wp_fastest_cache::init();
49
 
50
- //WP Rocket
51
- include_once(WPH_PATH . 'compatibility/wp-rocket.php');
52
- WPH_conflict_handle_wp_rocket::init();
53
-
54
  //WooCommerce
55
  include_once(WPH_PATH . 'compatibility/woocommerce.php');
56
  WPH_conflict_handle_woocommerce::init();
@@ -79,6 +76,9 @@
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
 
@@ -106,6 +106,18 @@
106
  //Ultimate Member
107
  include_once(WPH_PATH . 'compatibility/ultimate-member.php');
108
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  /**
110
  * Themes
111
  */
47
  include_once(WPH_PATH . 'compatibility/wp-fastest-cache.php');
48
  WPH_conflict_handle_wp_fastest_cache::init();
49
 
50
+
 
 
 
51
  //WooCommerce
52
  include_once(WPH_PATH . 'compatibility/woocommerce.php');
53
  WPH_conflict_handle_woocommerce::init();
76
  include_once(WPH_PATH . 'compatibility/wp-hummingbird.php');
77
  WPH_conflict_handle_hummingbird::init();
78
 
79
+ //WP Rocket
80
+ include_once(WPH_PATH . 'compatibility/wp-rocket.php');
81
+
82
  //Autoptimize
83
  include_once(WPH_PATH . 'compatibility/autoptimize.php');
84
 
106
  //Ultimate Member
107
  include_once(WPH_PATH . 'compatibility/ultimate-member.php');
108
 
109
+ //Swift Performance
110
+ include_once(WPH_PATH . 'compatibility/swift-performance.php');
111
+
112
+ //Fast Velocity Minify
113
+ include_once(WPH_PATH . 'compatibility/fast-velocity-minfy.php');
114
+
115
+ //LiteSpeed Cache
116
+ include_once(WPH_PATH . 'compatibility/litespeed-cache.php');
117
+
118
+ //WP Speed of Light
119
+ include_once(WPH_PATH . 'compatibility/wp-speed-of-light.php');
120
+
121
  /**
122
  * Themes
123
  */
include/functions.class.php CHANGED
@@ -2708,6 +2708,9 @@
2708
  //If your host has installed APC cache this plugin allows you to clear the cache from within WordPress
2709
  if (function_exists('apc_clear_cache'))
2710
  apc_clear_cache();
 
 
 
2711
 
2712
  //WPEngine
2713
  if ( class_exists( 'WpeCommon' ) )
2708
  //If your host has installed APC cache this plugin allows you to clear the cache from within WordPress
2709
  if (function_exists('apc_clear_cache'))
2710
  apc_clear_cache();
2711
+
2712
+ if (function_exists('fvm_purge_all'))
2713
+ fvm_purge_all();
2714
 
2715
  //WPEngine
2716
  if ( class_exists( 'WpeCommon' ) )
include/wph.class.php CHANGED
@@ -385,13 +385,13 @@
385
  }
386
 
387
  //check if mu loader is up to date
388
- if( $this->functions->is_muloader() && defined( 'WPH_MULOADER_VERSION' ) && version_compare( WPH_MULOADER_VERSION, '1.3.4', '<' ) && !isset($this->maintenances['mu_loader']) )
389
  {
390
  echo "<div class='error'><p><b>WP Hide</b> ". __('Unable to update the /mu-plugins/wp-hide-loader.php<br /> Please make sure the file is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
391
  }
392
 
393
  //check if the MU loader was succesfully updated
394
- if( $this->functions->is_muloader() && defined( 'WPH_MULOADER_VERSION' ) && version_compare( WPH_MULOADER_VERSION, '1.3.4', '<' ))
395
  {
396
  //attempt to copy the new version
397
  $status = WPH_functions::copy_mu_loader();
@@ -982,7 +982,7 @@
982
  return;
983
  }
984
 
985
- if ( $this->functions->is_muloader() && version_compare( WPH_MULOADER_VERSION, '1.3.4', '<' ) )
986
  {
987
  $status = $this->functions->copy_mu_loader( TRUE );
988
  if ( $status )
385
  }
386
 
387
  //check if mu loader is up to date
388
+ if( $this->functions->is_muloader() && defined( 'WPH_MULOADER_VERSION' ) && version_compare( WPH_MULOADER_VERSION, '1.3.5', '<' ) && !isset($this->maintenances['mu_loader']) )
389
  {
390
  echo "<div class='error'><p><b>WP Hide</b> ". __('Unable to update the /mu-plugins/wp-hide-loader.php<br /> Please make sure the file is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
391
  }
392
 
393
  //check if the MU loader was succesfully updated
394
+ if( $this->functions->is_muloader() && defined( 'WPH_MULOADER_VERSION' ) && version_compare( WPH_MULOADER_VERSION, '1.3.5', '<' ))
395
  {
396
  //attempt to copy the new version
397
  $status = WPH_functions::copy_mu_loader();
982
  return;
983
  }
984
 
985
+ if ( $this->functions->is_muloader() && version_compare( WPH_MULOADER_VERSION, '1.3.5', '<' ) )
986
  {
987
  $status = $this->functions->copy_mu_loader( TRUE );
988
  if ( $status )
languages/wp-hide-security-enhancer.mo CHANGED
Binary file
languages/wp-hide-security-enhancer.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Hide & Security Enhancer\n"
4
- "POT-Creation-Date: 2019-12-10 17:26+0200\n"
5
- "PO-Revision-Date: 2019-12-10 17:28+0200\n"
6
  "Last-Translator: NspCode <contact@nsp-code.com>\n"
7
  "Language-Team: Nsp Code\n"
8
  "Language: en\n"
@@ -111,135 +111,135 @@ msgid ""
111
  "changes to apply"
112
  msgstr ""
113
 
114
- #: include/functions.class.php:1661
115
  #: modules/components/admin-new_wp_login_php.php:114
116
  msgid "Hello"
117
  msgstr ""
118
 
119
- #: include/functions.class.php:1662
120
  msgid ""
121
  "This is an automated message to inform that you can always use a recovery "
122
  "link if something go wrong"
123
  msgstr ""
124
 
125
- #: include/functions.class.php:1663
126
  #: modules/components/admin-new_wp_login_php.php:118
127
  msgid "Please keep this url to a safe place."
128
  msgstr ""
129
 
130
- #: include/functions.class.php:2257
131
  #, php-format
132
  msgid "The %1$s plugin header is deprecated. Use %2$s instead."
133
  msgstr ""
134
 
135
- #: include/functions.class.php:2342
136
  #, php-format
137
  msgid "By %s."
138
  msgstr ""
139
 
140
- #: include/functions.class.php:2649
141
  msgid ""
142
  "Help us to maintain this plugin by sending improvements, suggestions and "
143
  "reporting any issues at "
144
  msgstr ""
145
 
146
- #: include/functions.class.php:2651
147
  msgid "Did you know there is a"
148
  msgstr ""
149
 
150
- #: include/functions.class.php:2651
151
  msgid "version of this plug-in?"
152
  msgstr ""
153
 
154
- #: include/functions.class.php:2653
155
  msgid ""
156
  "Did you find this plugin useful? Please support our work by submitting a "
157
  "review, spread the word about the code, or write an article about the plugin "
158
  "in your blog with a link to development site"
159
  msgstr ""
160
 
161
- #: include/wph.class.php:338
162
  msgid ""
163
  "Are you sure to reset all settings? All options will be removed. Manual "
164
  "remove of rewrite lines is required if no access from php"
165
  msgstr ""
166
 
167
- #: include/wph.class.php:376
168
  msgid ""
169
  "Your server run on WPEngine which works on Nginx rewrite rules, please check "
170
  "with WP Hide PRO version at"
171
  msgstr ""
172
 
173
- #: include/wph.class.php:381
174
  msgid ""
175
  "This plugin version can't handle MultiSite environment, please check with WP "
176
  "Hide PRO version at"
177
  msgstr ""
178
 
179
- #: include/wph.class.php:386
180
  msgid ""
181
  "Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please "
182
  "make sure this location is writable so the plugin create the required file."
183
  msgstr ""
184
 
185
- #: include/wph.class.php:392
186
  msgid ""
187
  "Unable to update the /mu-plugins/wp-hide-loader.php<br /> Please make sure "
188
  "the file is writable so the plugin create the required file."
189
  msgstr ""
190
 
191
- #: include/wph.class.php:401
192
  msgid ""
193
  "Unable to update the <b>mu-plugins/wp-hide-loader.php</b><br /> Please "
194
  "manually copy the file from"
195
  msgstr ""
196
 
197
- #: include/wph.class.php:401
198
  msgid "to"
199
  msgstr ""
200
 
201
- #: include/wph.class.php:407
202
  msgid ""
203
  "Permalink is required to be turned ON for WP Hide & Security Enhancer to work"
204
  msgstr ""
205
 
206
- #: include/wph.class.php:412
207
  msgid ""
208
  "<b>WP Hide</b> This plugin version can't handle this server type, please "
209
  "check with PRO version at"
210
  msgstr ""
211
 
212
- #: include/wph.class.php:423
213
  msgid ""
214
  "Unable to write custom rules to your .htaccess. Is this file writable? <br /"
215
  ">No changes are being applied."
216
  msgstr ""
217
 
218
- #: include/wph.class.php:426
219
  msgid ""
220
  "Unable to write custom rules to your web.config. Is this file writable? <br /"
221
  ">No changes are being applied."
222
  msgstr ""
223
 
224
- #: include/wph.class.php:434
225
  msgid ""
226
  "Unable to create cache folder. Is the wp-content writable? <br />No cache "
227
  "data will be available."
228
  msgstr ""
229
 
230
- #: include/wph.class.php:439
231
  msgid "All Settings where restored to default"
232
  msgstr ""
233
 
234
- #: include/wph.class.php:468
235
  msgid "Settings saved"
236
  msgstr ""
237
 
238
- #: include/wph.class.php:468
239
  msgid "Remember, site cache clear is required."
240
  msgstr ""
241
 
242
- #: include/wph.class.php:510
243
  msgid "Cache cleared"
244
  msgstr ""
245
 
@@ -316,10 +316,10 @@ msgstr ""
316
  #: modules/components/rewrite-root-files.php:23
317
  #: modules/components/rewrite-root-files.php:45
318
  #: modules/components/rewrite-root-files.php:67
319
- #: modules/components/rewrite-root-files.php:101
320
- #: modules/components/rewrite-root-files.php:124
321
- #: modules/components/rewrite-root-files.php:147
322
- #: modules/components/rewrite-root-files.php:170
323
  #: modules/components/rewrite-search.php:21
324
  #: modules/components/rewrite-search.php:42
325
  #: modules/components/rewrite-slash.php:20
@@ -383,6 +383,7 @@ msgstr ""
383
  #: modules/components/rewrite-new_xml-rpc-path.php:51
384
  #: modules/components/rewrite-new_xml-rpc-path.php:80
385
  #: modules/components/rewrite-new_xml-rpc-path.php:109
 
386
  #: modules/components/rewrite-wp_content_path.php:49
387
  msgid "This is an advanced option !"
388
  msgstr ""
@@ -445,10 +446,10 @@ msgstr ""
445
  #: modules/components/rewrite-root-files.php:30
446
  #: modules/components/rewrite-root-files.php:52
447
  #: modules/components/rewrite-root-files.php:75
448
- #: modules/components/rewrite-root-files.php:109
449
- #: modules/components/rewrite-root-files.php:131
450
- #: modules/components/rewrite-root-files.php:154
451
- #: modules/components/rewrite-root-files.php:177
452
  #: modules/components/rewrite-search.php:49
453
  #: modules/components/rewrite-slash.php:35
454
  #: modules/components/rewrite-wp_content_path.php:55
@@ -505,10 +506,10 @@ msgstr ""
505
  #: modules/components/rewrite-root-files.php:31
506
  #: modules/components/rewrite-root-files.php:53
507
  #: modules/components/rewrite-root-files.php:76
508
- #: modules/components/rewrite-root-files.php:110
509
- #: modules/components/rewrite-root-files.php:132
510
- #: modules/components/rewrite-root-files.php:155
511
- #: modules/components/rewrite-root-files.php:178
512
  #: modules/components/rewrite-search.php:50
513
  #: modules/components/rewrite-slash.php:36
514
  #: modules/components/rewrite-wp_content_path.php:56
@@ -1445,7 +1446,6 @@ msgid ""
1445
  msgstr ""
1446
 
1447
  #: modules/components/rewrite-new_plugin_path.php:41
1448
- #: modules/components/rewrite-new_upload_path.php:41
1449
  msgid ""
1450
  "This blocks the default wp-content/plugins/ url.<br />The functionality "
1451
  "apply only if <b>New Plugins Path</b> option is filled in."
@@ -1664,6 +1664,12 @@ msgid ""
1664
  "default urls."
1665
  msgstr ""
1666
 
 
 
 
 
 
 
1667
  #: modules/components/rewrite-new_upload_path.php:47
1668
  msgid ""
1669
  "This can break the layout if server not supporting the feature. Ensure `New "
@@ -1805,7 +1811,6 @@ msgstr ""
1805
 
1806
  #: modules/components/rewrite-root-files.php:63
1807
  #: modules/components/rewrite-root-files.php:67
1808
- #: modules/components/rewrite-root-files.php:101
1809
  msgid "Block wp-activate.php"
1810
  msgstr ""
1811
 
@@ -1840,59 +1845,74 @@ msgid ""
1840
  "from a different IP are blocked, including direct calls."
1841
  msgstr ""
1842
 
1843
- #: modules/components/rewrite-root-files.php:97
1844
- msgid "Block wp-cron.php"
 
 
 
1845
  msgstr ""
1846
 
 
1847
  #: modules/components/rewrite-root-files.php:102
 
 
 
 
1848
  msgid ""
1849
  "The file wp-cron.php is the portion of WordPress that handles scheduled "
1850
  "events within a WordPress site. If remote cron calls not being used this can "
1851
  "be set to Yes.."
1852
  msgstr ""
1853
 
1854
- #: modules/components/rewrite-root-files.php:120
1855
- #: modules/components/rewrite-root-files.php:124
 
 
 
 
 
 
 
1856
  msgid "Block wp-signup.php"
1857
  msgstr ""
1858
 
1859
- #: modules/components/rewrite-root-files.php:121
1860
  msgid "Block default wp-signup.php file."
1861
  msgstr ""
1862
 
1863
- #: modules/components/rewrite-root-files.php:125
1864
  msgid ""
1865
  "The wp-signup.php allow for anyone to register to your site. If the "
1866
  "registration functionality is turned off, is safe to block the wp-signup."
1867
  "php."
1868
  msgstr ""
1869
 
1870
- #: modules/components/rewrite-root-files.php:143
1871
- #: modules/components/rewrite-root-files.php:147
1872
  msgid "Block wp-register.php"
1873
  msgstr ""
1874
 
1875
- #: modules/components/rewrite-root-files.php:144
1876
  msgid "Block default wp-register.php file."
1877
  msgstr ""
1878
 
1879
- #: modules/components/rewrite-root-files.php:148
1880
  msgid ""
1881
  "This is a deprecated file but still present in many WordPress installs. "
1882
  "When called the user is redirected to /register page. Is safe to block the "
1883
  "wp-register.php."
1884
  msgstr ""
1885
 
1886
- #: modules/components/rewrite-root-files.php:166
1887
- #: modules/components/rewrite-root-files.php:170
1888
  msgid "Block other wp-*.php files"
1889
  msgstr ""
1890
 
1891
- #: modules/components/rewrite-root-files.php:167
1892
  msgid "Block other wp-*.php files in the root."
1893
  msgstr ""
1894
 
1895
- #: modules/components/rewrite-root-files.php:171
1896
  msgid ""
1897
  "Block other wp-*.php files. E.g. wp-blog-header.php, wp-config.php, wp-cron."
1898
  "php. Those files are used internally, blocking those will not affect any "
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Hide & Security Enhancer\n"
4
+ "POT-Creation-Date: 2020-06-23 15:05+0300\n"
5
+ "PO-Revision-Date: 2020-06-23 15:05+0300\n"
6
  "Last-Translator: NspCode <contact@nsp-code.com>\n"
7
  "Language-Team: Nsp Code\n"
8
  "Language: en\n"
111
  "changes to apply"
112
  msgstr ""
113
 
114
+ #: include/functions.class.php:1695
115
  #: modules/components/admin-new_wp_login_php.php:114
116
  msgid "Hello"
117
  msgstr ""
118
 
119
+ #: include/functions.class.php:1696
120
  msgid ""
121
  "This is an automated message to inform that you can always use a recovery "
122
  "link if something go wrong"
123
  msgstr ""
124
 
125
+ #: include/functions.class.php:1697
126
  #: modules/components/admin-new_wp_login_php.php:118
127
  msgid "Please keep this url to a safe place."
128
  msgstr ""
129
 
130
+ #: include/functions.class.php:2291
131
  #, php-format
132
  msgid "The %1$s plugin header is deprecated. Use %2$s instead."
133
  msgstr ""
134
 
135
+ #: include/functions.class.php:2376
136
  #, php-format
137
  msgid "By %s."
138
  msgstr ""
139
 
140
+ #: include/functions.class.php:2799
141
  msgid ""
142
  "Help us to maintain this plugin by sending improvements, suggestions and "
143
  "reporting any issues at "
144
  msgstr ""
145
 
146
+ #: include/functions.class.php:2801
147
  msgid "Did you know there is a"
148
  msgstr ""
149
 
150
+ #: include/functions.class.php:2801
151
  msgid "version of this plug-in?"
152
  msgstr ""
153
 
154
+ #: include/functions.class.php:2803
155
  msgid ""
156
  "Did you find this plugin useful? Please support our work by submitting a "
157
  "review, spread the word about the code, or write an article about the plugin "
158
  "in your blog with a link to development site"
159
  msgstr ""
160
 
161
+ #: include/wph.class.php:336
162
  msgid ""
163
  "Are you sure to reset all settings? All options will be removed. Manual "
164
  "remove of rewrite lines is required if no access from php"
165
  msgstr ""
166
 
167
+ #: include/wph.class.php:374
168
  msgid ""
169
  "Your server run on WPEngine which works on Nginx rewrite rules, please check "
170
  "with WP Hide PRO version at"
171
  msgstr ""
172
 
173
+ #: include/wph.class.php:379
174
  msgid ""
175
  "This plugin version can't handle MultiSite environment, please check with WP "
176
  "Hide PRO version at"
177
  msgstr ""
178
 
179
+ #: include/wph.class.php:384
180
  msgid ""
181
  "Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please "
182
  "make sure this location is writable so the plugin create the required file."
183
  msgstr ""
184
 
185
+ #: include/wph.class.php:390
186
  msgid ""
187
  "Unable to update the /mu-plugins/wp-hide-loader.php<br /> Please make sure "
188
  "the file is writable so the plugin create the required file."
189
  msgstr ""
190
 
191
+ #: include/wph.class.php:399
192
  msgid ""
193
  "Unable to update the <b>mu-plugins/wp-hide-loader.php</b><br /> Please "
194
  "manually copy the file from"
195
  msgstr ""
196
 
197
+ #: include/wph.class.php:399
198
  msgid "to"
199
  msgstr ""
200
 
201
+ #: include/wph.class.php:405
202
  msgid ""
203
  "Permalink is required to be turned ON for WP Hide & Security Enhancer to work"
204
  msgstr ""
205
 
206
+ #: include/wph.class.php:410
207
  msgid ""
208
  "<b>WP Hide</b> This plugin version can't handle this server type, please "
209
  "check with PRO version at"
210
  msgstr ""
211
 
212
+ #: include/wph.class.php:421
213
  msgid ""
214
  "Unable to write custom rules to your .htaccess. Is this file writable? <br /"
215
  ">No changes are being applied."
216
  msgstr ""
217
 
218
+ #: include/wph.class.php:424
219
  msgid ""
220
  "Unable to write custom rules to your web.config. Is this file writable? <br /"
221
  ">No changes are being applied."
222
  msgstr ""
223
 
224
+ #: include/wph.class.php:432
225
  msgid ""
226
  "Unable to create cache folder. Is the wp-content writable? <br />No cache "
227
  "data will be available."
228
  msgstr ""
229
 
230
+ #: include/wph.class.php:437
231
  msgid "All Settings where restored to default"
232
  msgstr ""
233
 
234
+ #: include/wph.class.php:466
235
  msgid "Settings saved"
236
  msgstr ""
237
 
238
+ #: include/wph.class.php:466
239
  msgid "Remember, site cache clear is required."
240
  msgstr ""
241
 
242
+ #: include/wph.class.php:508
243
  msgid "Cache cleared"
244
  msgstr ""
245
 
316
  #: modules/components/rewrite-root-files.php:23
317
  #: modules/components/rewrite-root-files.php:45
318
  #: modules/components/rewrite-root-files.php:67
319
+ #: modules/components/rewrite-root-files.php:102
320
+ #: modules/components/rewrite-root-files.php:131
321
+ #: modules/components/rewrite-root-files.php:154
322
+ #: modules/components/rewrite-root-files.php:177
323
  #: modules/components/rewrite-search.php:21
324
  #: modules/components/rewrite-search.php:42
325
  #: modules/components/rewrite-slash.php:20
383
  #: modules/components/rewrite-new_xml-rpc-path.php:51
384
  #: modules/components/rewrite-new_xml-rpc-path.php:80
385
  #: modules/components/rewrite-new_xml-rpc-path.php:109
386
+ #: modules/components/rewrite-root-files.php:110
387
  #: modules/components/rewrite-wp_content_path.php:49
388
  msgid "This is an advanced option !"
389
  msgstr ""
446
  #: modules/components/rewrite-root-files.php:30
447
  #: modules/components/rewrite-root-files.php:52
448
  #: modules/components/rewrite-root-files.php:75
449
+ #: modules/components/rewrite-root-files.php:116
450
+ #: modules/components/rewrite-root-files.php:138
451
+ #: modules/components/rewrite-root-files.php:161
452
+ #: modules/components/rewrite-root-files.php:184
453
  #: modules/components/rewrite-search.php:49
454
  #: modules/components/rewrite-slash.php:35
455
  #: modules/components/rewrite-wp_content_path.php:55
506
  #: modules/components/rewrite-root-files.php:31
507
  #: modules/components/rewrite-root-files.php:53
508
  #: modules/components/rewrite-root-files.php:76
509
+ #: modules/components/rewrite-root-files.php:117
510
+ #: modules/components/rewrite-root-files.php:139
511
+ #: modules/components/rewrite-root-files.php:162
512
+ #: modules/components/rewrite-root-files.php:185
513
  #: modules/components/rewrite-search.php:50
514
  #: modules/components/rewrite-slash.php:36
515
  #: modules/components/rewrite-wp_content_path.php:56
1446
  msgstr ""
1447
 
1448
  #: modules/components/rewrite-new_plugin_path.php:41
 
1449
  msgid ""
1450
  "This blocks the default wp-content/plugins/ url.<br />The functionality "
1451
  "apply only if <b>New Plugins Path</b> option is filled in."
1664
  "default urls."
1665
  msgstr ""
1666
 
1667
+ #: modules/components/rewrite-new_upload_path.php:41
1668
+ msgid ""
1669
+ "This blocks the default wp-content/uploads/ url.<br />The functionality "
1670
+ "apply only if <b>New Plugins Path</b> option is filled in."
1671
+ msgstr ""
1672
+
1673
  #: modules/components/rewrite-new_upload_path.php:47
1674
  msgid ""
1675
  "This can break the layout if server not supporting the feature. Ensure `New "
1811
 
1812
  #: modules/components/rewrite-root-files.php:63
1813
  #: modules/components/rewrite-root-files.php:67
 
1814
  msgid "Block wp-activate.php"
1815
  msgstr ""
1816
 
1845
  "from a different IP are blocked, including direct calls."
1846
  msgstr ""
1847
 
1848
+ #: modules/components/rewrite-root-files.php:93
1849
+ msgid ""
1850
+ "On certain servers, different ip's can be used to call the cron internally. "
1851
+ "If the Cron service apepars to not trigger anymore, this option should be "
1852
+ "disabled."
1853
  msgstr ""
1854
 
1855
+ #: modules/components/rewrite-root-files.php:98
1856
  #: modules/components/rewrite-root-files.php:102
1857
+ msgid "Block wp-cron.php"
1858
+ msgstr ""
1859
+
1860
+ #: modules/components/rewrite-root-files.php:103
1861
  msgid ""
1862
  "The file wp-cron.php is the portion of WordPress that handles scheduled "
1863
  "events within a WordPress site. If remote cron calls not being used this can "
1864
  "be set to Yes.."
1865
  msgstr ""
1866
 
1867
+ #: modules/components/rewrite-root-files.php:110
1868
+ msgid ""
1869
+ "The Cron service is how WordPress handles scheduling time-based tasks in "
1870
+ "WordPress. If not working correctly, some core features such as checking for "
1871
+ "updates and publishing scheduled will fail."
1872
+ msgstr ""
1873
+
1874
+ #: modules/components/rewrite-root-files.php:127
1875
+ #: modules/components/rewrite-root-files.php:131
1876
  msgid "Block wp-signup.php"
1877
  msgstr ""
1878
 
1879
+ #: modules/components/rewrite-root-files.php:128
1880
  msgid "Block default wp-signup.php file."
1881
  msgstr ""
1882
 
1883
+ #: modules/components/rewrite-root-files.php:132
1884
  msgid ""
1885
  "The wp-signup.php allow for anyone to register to your site. If the "
1886
  "registration functionality is turned off, is safe to block the wp-signup."
1887
  "php."
1888
  msgstr ""
1889
 
1890
+ #: modules/components/rewrite-root-files.php:150
1891
+ #: modules/components/rewrite-root-files.php:154
1892
  msgid "Block wp-register.php"
1893
  msgstr ""
1894
 
1895
+ #: modules/components/rewrite-root-files.php:151
1896
  msgid "Block default wp-register.php file."
1897
  msgstr ""
1898
 
1899
+ #: modules/components/rewrite-root-files.php:155
1900
  msgid ""
1901
  "This is a deprecated file but still present in many WordPress installs. "
1902
  "When called the user is redirected to /register page. Is safe to block the "
1903
  "wp-register.php."
1904
  msgstr ""
1905
 
1906
+ #: modules/components/rewrite-root-files.php:173
1907
+ #: modules/components/rewrite-root-files.php:177
1908
  msgid "Block other wp-*.php files"
1909
  msgstr ""
1910
 
1911
+ #: modules/components/rewrite-root-files.php:174
1912
  msgid "Block other wp-*.php files in the root."
1913
  msgstr ""
1914
 
1915
+ #: modules/components/rewrite-root-files.php:178
1916
  msgid ""
1917
  "Block other wp-*.php files. E.g. wp-blog-header.php, wp-config.php, wp-cron."
1918
  "php. Those files are used internally, blocking those will not affect any "
modules/components/admin-admin_url.php CHANGED
@@ -289,13 +289,14 @@
289
 
290
  function update_admin_url( $url, $path, $blog_id )
291
  {
292
- //if( strpos( $_SERVER['REQUEST_URI'], "/admin-ajax.php") === FALSE )
293
- //return $url;
294
-
295
  //replace the wp-admin with custom slug
296
  $admin_url = $this->wph->functions->get_module_item_setting('admin_url');
297
 
298
- $url = str_replace('/wp-admin', '/' . $admin_url, $url);
 
 
 
299
 
300
  return $url;
301
 
289
 
290
  function update_admin_url( $url, $path, $blog_id )
291
  {
292
+
 
 
293
  //replace the wp-admin with custom slug
294
  $admin_url = $this->wph->functions->get_module_item_setting('admin_url');
295
 
296
+ if ( ! empty ( $this->wph->default_variables['wordpress_directory'] ) )
297
+ $url = str_replace( $this->wph->default_variables['wordpress_directory'] . '/wp-admin', '/' . $admin_url, $url);
298
+ else
299
+ $url = str_replace( '/wp-admin', '/' . $admin_url, $url);
300
 
301
  return $url;
302
 
mu-loader/wp-hide-loader.php CHANGED
@@ -20,9 +20,9 @@
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.4');
24
 
25
- define('WPH_URL', plugins_url() . '/wp-hide-security-enhancer' );
26
 
27
  include_once(WPH_PATH . '/include/wph.class.php');
28
  include_once(WPH_PATH . '/include/functions.class.php');
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.5');
24
 
25
+ define('WPH_URL', str_replace(array('https:', 'http:'), "", plugins_url() . '/wp-hide-security-enhancer' ) );
26
 
27
  include_once(WPH_PATH . '/include/wph.class.php');
28
  include_once(WPH_PATH . '/include/functions.class.php');
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.4.1
7
- Stable tag: 1.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
@@ -336,6 +336,20 @@ Please get in touch with us and we'll do our best to include it for a next versi
336
 
337
  == Changelog ==
338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  = 1.6 =
340
  * New filter wp-hide/content_urls_replacement
341
  * Compatibility with Ultimate Member, user picture upload fix
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.4.2
7
+ Stable tag: 1.6.0.4
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
336
 
337
  == Changelog ==
338
 
339
+ = 1.6.0.4 =
340
+ * Purge cache for Fast Velocity Minify plugin, when clearing internal cache
341
+ * Return new admin slug when calling admin_url() and if default admin is customized
342
+ * Use no-protocol when loading the files, to ensure they are being loaded over current domain protocol
343
+ * BuddyPress compatibility file update
344
+ * Elementor compatibility file update
345
+ * ShortPixel Adaptive Images compatibility file update
346
+ * WooCommerce compatibility file update
347
+ * WP Rocket compatibility file update
348
+ * New compatibility file for Fast Velocity Minify
349
+ * New compatibility file for LiteSpeed Cache
350
+ * New compatibility file for Swift Performance
351
+ * New compatibility file for WP Speed of Light
352
+
353
  = 1.6 =
354
  * New filter wp-hide/content_urls_replacement
355
  * Compatibility with Ultimate Member, user picture upload fix
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
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
@@ -19,7 +19,7 @@ Domain Path: /languages/
19
  define('WPH_PATH', plugin_dir_path(__FILE__));
20
  define('WPH_CACHE_PATH', WP_CONTENT_DIR . '/cache/wph/' );
21
 
22
- define('WPH_URL', plugins_url() . '/wp-hide-security-enhancer' );
23
 
24
  include_once(WPH_PATH . '/include/wph.class.php');
25
  include_once(WPH_PATH . '/include/functions.class.php');
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.0.4
9
  Text Domain: wp-hide-security-enhancer
10
  Domain Path: /languages/
11
  */
19
  define('WPH_PATH', plugin_dir_path(__FILE__));
20
  define('WPH_CACHE_PATH', WP_CONTENT_DIR . '/cache/wph/' );
21
 
22
+ define('WPH_URL', str_replace(array('https:', 'http:'), "", plugins_url() . '/wp-hide-security-enhancer' ) );
23
 
24
  include_once(WPH_PATH . '/include/wph.class.php');
25
  include_once(WPH_PATH . '/include/functions.class.php');