Version Description
- WooCommerce downloadables fix when using custom slug for uploads
- Include support for admin_url() along with admin-ajax.php
- Fixed redirect link after user register.
- Use get_rewrite_base and get_rewrite_to_base for all modules to apply correct site path and any WordPress subdirectory install
- WordPress subdirectory install compatibility fix
- Improved router file processor for WordPress subdirectory installs
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.4.7.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.7 to 1.4.7.4
- .gitignore +1 -0
- conflicts/woocommerce.php +79 -0
- include/wph.class.php +18 -9
- modules/components/admin-admin_url.php +23 -1
- modules/components/admin-new_wp_login_php.php +2 -0
- modules/components/rewrite-comments.php +2 -0
- modules/components/rewrite-new_include_path.php +2 -0
- modules/components/rewrite-new_plugin_path.php +2 -0
- modules/components/rewrite-new_upload_path.php +2 -0
- modules/components/rewrite-new_xml-rpc-path.php +2 -0
- modules/components/rewrite-root-files.php +14 -0
- modules/components/rewrite-wp_content_path.php +2 -0
- readme.txt +16 -5
- wp-hide.php +1 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
/router/environment.php
|
conflicts/woocommerce.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class WPH_conflict_handle_woocommerce
|
5 |
+
{
|
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()
|
13 |
+
{
|
14 |
+
|
15 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
16 |
+
|
17 |
+
if(is_plugin_active( 'woocommerce/woocommerce.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 |
+
global $wph;
|
29 |
+
|
30 |
+
add_action('woocommerce_product_get_downloads', array('WPH_conflict_handle_woocommerce', 'woocommerce_product_get_downloads'), 99, 2);
|
31 |
+
|
32 |
+
}
|
33 |
+
|
34 |
+
static function woocommerce_product_get_downloads( $data, $product)
|
35 |
+
{
|
36 |
+
|
37 |
+
//only when downloading a file
|
38 |
+
if( ! isset($_GET['download_file']) || ! isset($_GET['key']) )
|
39 |
+
return $data;
|
40 |
+
|
41 |
+
if( !is_array( $data ) || count( $data ) < 1)
|
42 |
+
return $data;
|
43 |
+
|
44 |
+
global $wph;
|
45 |
+
|
46 |
+
//if no change on the upload slug, return as is
|
47 |
+
$new_upload_path = $wph->functions->get_module_item_setting('new_upload_path');
|
48 |
+
if( empty ( $new_upload_path ) )
|
49 |
+
return $data;
|
50 |
+
|
51 |
+
foreach ( $data as $key => $product_download )
|
52 |
+
{
|
53 |
+
$file = $product_download->get_file();
|
54 |
+
|
55 |
+
$replace = trailingslashit ( site_url() ) . $new_upload_path;
|
56 |
+
$replace = str_replace(array("http:", "https:") , "", $replace );
|
57 |
+
|
58 |
+
$replace_with = $wph->default_variables['upload_url'];
|
59 |
+
$replace_with = str_replace(array("http:", "https:") , "", $replace_with );
|
60 |
+
|
61 |
+
$file = str_replace($replace, $replace_with , $file);
|
62 |
+
|
63 |
+
//attempt to change back the url
|
64 |
+
$product_download->set_file( $file );
|
65 |
+
|
66 |
+
$data[$key] = $product_download;
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
return $data;
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
?>
|
include/wph.class.php
CHANGED
@@ -625,7 +625,20 @@
|
|
625 |
if($wp_the_query->is_404())
|
626 |
return $location;
|
627 |
|
628 |
-
$location
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
|
630 |
return $location;
|
631 |
}
|
@@ -1125,14 +1138,6 @@
|
|
1125 |
if($wp_directory != '')
|
1126 |
{
|
1127 |
$this->default_variables['wordpress_directory'] = '/' . trim($wp_directory, '/');
|
1128 |
-
|
1129 |
-
/*
|
1130 |
-
$domain_ABSPATH = str_replace('/' . $wp_directory .'/' , "", trailingslashit( str_replace('\\', '/', realpath( ABSPATH ))));
|
1131 |
-
|
1132 |
-
$content_directory = str_replace($domain_ABSPATH, "" , untrailingslashit( str_replace('\\', '/', realpath( WP_CONTENT_DIR ))));
|
1133 |
-
$content_directory = trim($content_directory, '/ ');
|
1134 |
-
$this->default_variables['content_directory'] = '/' . $content_directory;
|
1135 |
-
*/
|
1136 |
}
|
1137 |
|
1138 |
//used across modules
|
@@ -1281,6 +1286,10 @@
|
|
1281 |
include_once(WPH_PATH . 'conflicts/theme-avada.php');
|
1282 |
WPH_conflict_theme_avada::init();
|
1283 |
|
|
|
|
|
|
|
|
|
1284 |
}
|
1285 |
|
1286 |
|
625 |
if($wp_the_query->is_404())
|
626 |
return $location;
|
627 |
|
628 |
+
$location = $this->functions->content_urls_replacement($location, $this->functions->get_replacement_list() );
|
629 |
+
|
630 |
+
/**
|
631 |
+
* Check if register link for to apply the replacement
|
632 |
+
* Unfortunate the default WordPress link does not contain a beginning backslash to make a replacement match in functions->content_urls_replacement
|
633 |
+
*/
|
634 |
+
if(preg_match("/(wp-login.php|checkemail=registered)/i", $location))
|
635 |
+
{
|
636 |
+
$updated_slug = $this->functions->get_module_item_setting('new_wp_login_php' , 'admin');
|
637 |
+
if ( ! empty( $updated_slug ))
|
638 |
+
$location = str_replace('wp-login.php', $updated_slug, $location);
|
639 |
+
}
|
640 |
+
|
641 |
+
$location = apply_filters('wp-hide/wp_redirect', $location);
|
642 |
|
643 |
return $location;
|
644 |
}
|
1138 |
if($wp_directory != '')
|
1139 |
{
|
1140 |
$this->default_variables['wordpress_directory'] = '/' . trim($wp_directory, '/');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1141 |
}
|
1142 |
|
1143 |
//used across modules
|
1286 |
include_once(WPH_PATH . 'conflicts/theme-avada.php');
|
1287 |
WPH_conflict_theme_avada::init();
|
1288 |
|
1289 |
+
//WooCommerce
|
1290 |
+
include_once(WPH_PATH . 'conflicts/woocommerce.php');
|
1291 |
+
WPH_conflict_handle_woocommerce::init();
|
1292 |
+
|
1293 |
}
|
1294 |
|
1295 |
|
modules/components/admin-admin_url.php
CHANGED
@@ -79,6 +79,9 @@
|
|
79 |
//make sure the admin url redirect url is updated when updating WordPress Core
|
80 |
add_filter('user_admin_url', array($this, 'wp_core_update_user_admin_url'), 999, 2);
|
81 |
add_filter('admin_url', array($this, 'wp_core_update_admin_url'), 999, 3);
|
|
|
|
|
|
|
82 |
|
83 |
}
|
84 |
|
@@ -97,6 +100,8 @@
|
|
97 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $wp_admin, TRUE, FALSE );
|
98 |
$rewrite_to_new_admin = $this->wph->functions->get_rewrite_to_base( $new_admin, FALSE, FALSE );
|
99 |
|
|
|
|
|
100 |
if($this->wph->server_htaccess_config === TRUE)
|
101 |
{
|
102 |
$text = "\nRewriteCond %{REQUEST_URI} /". $rewrite_to_new_admin ."$";
|
@@ -207,7 +212,9 @@
|
|
207 |
return FALSE;
|
208 |
|
209 |
$rewrite_base = $this->wph->functions->get_rewrite_base( '', FALSE);
|
210 |
-
$rewrite_to
|
|
|
|
|
211 |
|
212 |
if($this->wph->server_htaccess_config === TRUE)
|
213 |
{
|
@@ -291,6 +298,21 @@
|
|
291 |
return $url;
|
292 |
|
293 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
|
295 |
|
296 |
}
|
79 |
//make sure the admin url redirect url is updated when updating WordPress Core
|
80 |
add_filter('user_admin_url', array($this, 'wp_core_update_user_admin_url'), 999, 2);
|
81 |
add_filter('admin_url', array($this, 'wp_core_update_admin_url'), 999, 3);
|
82 |
+
|
83 |
+
//ensure admin_url() return correct url
|
84 |
+
add_filter('admin_url', array($this, 'update_admin_url'), 999, 3);
|
85 |
|
86 |
}
|
87 |
|
100 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $wp_admin, TRUE, FALSE );
|
101 |
$rewrite_to_new_admin = $this->wph->functions->get_rewrite_to_base( $new_admin, FALSE, FALSE );
|
102 |
|
103 |
+
$text = '';
|
104 |
+
|
105 |
if($this->wph->server_htaccess_config === TRUE)
|
106 |
{
|
107 |
$text = "\nRewriteCond %{REQUEST_URI} /". $rewrite_to_new_admin ."$";
|
212 |
return FALSE;
|
213 |
|
214 |
$rewrite_base = $this->wph->functions->get_rewrite_base( '', FALSE);
|
215 |
+
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
216 |
+
|
217 |
+
$text = '';
|
218 |
|
219 |
if($this->wph->server_htaccess_config === TRUE)
|
220 |
{
|
298 |
return $url;
|
299 |
|
300 |
}
|
301 |
+
|
302 |
+
|
303 |
+
function update_admin_url( $url, $path, $blog_id )
|
304 |
+
{
|
305 |
+
if( strpos( $_SERVER['REQUEST_URI'], "/admin-ajax.php") === FALSE )
|
306 |
+
return $url;
|
307 |
+
|
308 |
+
//replace the wp-admin with custom slug
|
309 |
+
$admin_url = $this->wph->functions->get_module_item_setting('admin_url');
|
310 |
+
|
311 |
+
$url = str_replace('/wp-admin', '/' . $admin_url, $url);
|
312 |
+
|
313 |
+
return $url;
|
314 |
+
|
315 |
+
}
|
316 |
|
317 |
|
318 |
}
|
modules/components/admin-new_wp_login_php.php
CHANGED
@@ -133,6 +133,8 @@
|
|
133 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-login.php', FALSE, FALSE );
|
134 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
135 |
|
|
|
|
|
136 |
if($this->wph->server_htaccess_config === TRUE)
|
137 |
{
|
138 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
133 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-login.php', FALSE, FALSE );
|
134 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
135 |
|
136 |
+
$text = '';
|
137 |
+
|
138 |
if($this->wph->server_htaccess_config === TRUE)
|
139 |
{
|
140 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
modules/components/rewrite-comments.php
CHANGED
@@ -104,6 +104,8 @@
|
|
104 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-comments-post.php', FALSE, FALSE );
|
105 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
106 |
|
|
|
|
|
107 |
if($this->wph->server_htaccess_config === TRUE)
|
108 |
{
|
109 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
104 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-comments-post.php', FALSE, FALSE );
|
105 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
106 |
|
107 |
+
$text = '';
|
108 |
+
|
109 |
if($this->wph->server_htaccess_config === TRUE)
|
110 |
{
|
111 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
modules/components/rewrite-new_include_path.php
CHANGED
@@ -159,6 +159,8 @@
|
|
159 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-includes', FALSE, FALSE );
|
160 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
161 |
|
|
|
|
|
162 |
if($this->wph->server_htaccess_config === TRUE)
|
163 |
{
|
164 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
159 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-includes', FALSE, FALSE );
|
160 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
161 |
|
162 |
+
$text = '';
|
163 |
+
|
164 |
if($this->wph->server_htaccess_config === TRUE)
|
165 |
{
|
166 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
modules/components/rewrite-new_plugin_path.php
CHANGED
@@ -221,6 +221,8 @@
|
|
221 |
|
222 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
223 |
|
|
|
|
|
224 |
if($this->wph->server_htaccess_config === TRUE)
|
225 |
{
|
226 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
221 |
|
222 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
223 |
|
224 |
+
$text = '';
|
225 |
+
|
226 |
if($this->wph->server_htaccess_config === TRUE)
|
227 |
{
|
228 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
modules/components/rewrite-new_upload_path.php
CHANGED
@@ -166,6 +166,8 @@
|
|
166 |
$rewrite_base = $this->wph->functions->get_rewrite_base( $default_upload_url, FALSE );
|
167 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
168 |
|
|
|
|
|
169 |
if($this->wph->server_htaccess_config === TRUE)
|
170 |
{
|
171 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
166 |
$rewrite_base = $this->wph->functions->get_rewrite_base( $default_upload_url, FALSE );
|
167 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
168 |
|
169 |
+
$text = '';
|
170 |
+
|
171 |
if($this->wph->server_htaccess_config === TRUE)
|
172 |
{
|
173 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
modules/components/rewrite-new_xml-rpc-path.php
CHANGED
@@ -127,6 +127,8 @@
|
|
127 |
|
128 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
129 |
|
|
|
|
|
130 |
if($this->wph->server_htaccess_config === TRUE)
|
131 |
{
|
132 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
127 |
|
128 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
129 |
|
130 |
+
$text = '';
|
131 |
+
|
132 |
if($this->wph->server_htaccess_config === TRUE)
|
133 |
{
|
134 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
modules/components/rewrite-root-files.php
CHANGED
@@ -143,6 +143,8 @@
|
|
143 |
|
144 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'license.txt', FALSE, FALSE );
|
145 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
|
|
|
|
146 |
|
147 |
if($this->wph->server_htaccess_config === TRUE)
|
148 |
{
|
@@ -175,6 +177,8 @@
|
|
175 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'readme.html', FALSE, FALSE );
|
176 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
177 |
|
|
|
|
|
178 |
if($this->wph->server_htaccess_config === TRUE)
|
179 |
{
|
180 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
@@ -206,6 +210,8 @@
|
|
206 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-activate.php', FALSE, FALSE );
|
207 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
208 |
|
|
|
|
|
209 |
if($this->wph->server_htaccess_config === TRUE)
|
210 |
{
|
211 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
@@ -238,6 +244,8 @@
|
|
238 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-cron.php', FALSE, FALSE );
|
239 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
240 |
|
|
|
|
|
241 |
if($this->wph->server_htaccess_config === TRUE)
|
242 |
{
|
243 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
@@ -269,6 +277,8 @@
|
|
269 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-signup.php', FALSE, FALSE );
|
270 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
271 |
|
|
|
|
|
272 |
if($this->wph->server_htaccess_config === TRUE)
|
273 |
{
|
274 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
@@ -299,6 +309,8 @@
|
|
299 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-register.php', FALSE, FALSE );
|
300 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
301 |
|
|
|
|
|
302 |
if($this->wph->server_htaccess_config === TRUE)
|
303 |
{
|
304 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
@@ -328,6 +340,8 @@
|
|
328 |
$rewrite_conditional = $this->wph->functions->get_rewrite_base( '', FALSE );
|
329 |
$rewrite_base = $this->wph->functions->get_rewrite_base( '', FALSE);
|
330 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
|
|
|
|
331 |
|
332 |
if($this->wph->server_htaccess_config === TRUE)
|
333 |
{
|
143 |
|
144 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'license.txt', FALSE, FALSE );
|
145 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
146 |
+
|
147 |
+
$text = '';
|
148 |
|
149 |
if($this->wph->server_htaccess_config === TRUE)
|
150 |
{
|
177 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'readme.html', FALSE, FALSE );
|
178 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
179 |
|
180 |
+
$text = '';
|
181 |
+
|
182 |
if($this->wph->server_htaccess_config === TRUE)
|
183 |
{
|
184 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
210 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-activate.php', FALSE, FALSE );
|
211 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
212 |
|
213 |
+
$text = '';
|
214 |
+
|
215 |
if($this->wph->server_htaccess_config === TRUE)
|
216 |
{
|
217 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
244 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-cron.php', FALSE, FALSE );
|
245 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
246 |
|
247 |
+
$text = '';
|
248 |
+
|
249 |
if($this->wph->server_htaccess_config === TRUE)
|
250 |
{
|
251 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
277 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-signup.php', FALSE, FALSE );
|
278 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
279 |
|
280 |
+
$text = '';
|
281 |
+
|
282 |
if($this->wph->server_htaccess_config === TRUE)
|
283 |
{
|
284 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
309 |
$rewrite_base = $this->wph->functions->get_rewrite_base( 'wp-register.php', FALSE, FALSE );
|
310 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
311 |
|
312 |
+
$text = '';
|
313 |
+
|
314 |
if($this->wph->server_htaccess_config === TRUE)
|
315 |
{
|
316 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
340 |
$rewrite_conditional = $this->wph->functions->get_rewrite_base( '', FALSE );
|
341 |
$rewrite_base = $this->wph->functions->get_rewrite_base( '', FALSE);
|
342 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
343 |
+
|
344 |
+
$text = '';
|
345 |
|
346 |
if($this->wph->server_htaccess_config === TRUE)
|
347 |
{
|
modules/components/rewrite-wp_content_path.php
CHANGED
@@ -109,6 +109,8 @@
|
|
109 |
$rewrite_base = $this->wph->functions->get_rewrite_base( $this->wph->default_variables['content_directory'], FALSE, FALSE );
|
110 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
111 |
|
|
|
|
|
112 |
if($this->wph->server_htaccess_config === TRUE)
|
113 |
{
|
114 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
109 |
$rewrite_base = $this->wph->functions->get_rewrite_base( $this->wph->default_variables['content_directory'], FALSE, FALSE );
|
110 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' );
|
111 |
|
112 |
+
$text = '';
|
113 |
+
|
114 |
if($this->wph->server_htaccess_config === TRUE)
|
115 |
{
|
116 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
readme.txt
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: nsp-code, tdgu
|
3 |
-
Donate link:
|
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: 4.
|
7 |
-
Stable tag: 1.4.7
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
The **easy way to completely hide your WordPress** core files, theme and plugins
|
15 |
|
16 |
Change the default WordPress login urls from wp-admin and wp-login.php to something totally arbitrary. No one will ever know where to try to guess a login and hack into your site. Totally invisible !!
|
17 |
|
@@ -230,7 +230,10 @@ Feel free to contact us at electronice_delphi@yahoo.com
|
|
230 |
* First, stay calm. There will be no harm, guaranteed :)
|
231 |
* Go to admin and change some of plugin options to see which one cause the problem. Then report it to forum or get in touch with us to fix it.
|
232 |
* If you can't login to admin, use the Recovery Link which has been sent to your e-mail. This will reset the login to default.
|
233 |
-
* If
|
|
|
|
|
|
|
234 |
|
235 |
* At this point the site should run as before. If for some reason still not working, you missed something, please get in touch with us at electronice_delphi@yahoo.com and we'll fix it for you in no time!
|
236 |
|
@@ -249,6 +252,14 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
249 |
|
250 |
== Changelog ==
|
251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
= 1.4.7 =
|
253 |
* Rewrite changes for many components
|
254 |
* Rewrite update for admin and login url
|
1 |
=== Plugin Name ===
|
2 |
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: 4.9.1
|
7 |
+
Stable tag: 1.4.7.4
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
The **easy way to completely hide your WordPress** core files, login page, theme and plugins paths from being show on front side. This is a huge improvement over Site Security, no one will know you actually run a WordPress. Provide a simple way to clean up html by removing all WordPress fingerprints.
|
15 |
|
16 |
Change the default WordPress login urls from wp-admin and wp-login.php to something totally arbitrary. No one will ever know where to try to guess a login and hack into your site. Totally invisible !!
|
17 |
|
230 |
* First, stay calm. There will be no harm, guaranteed :)
|
231 |
* Go to admin and change some of plugin options to see which one cause the problem. Then report it to forum or get in touch with us to fix it.
|
232 |
* If you can't login to admin, use the Recovery Link which has been sent to your e-mail. This will reset the login to default.
|
233 |
+
* If none of above worked for you, or you can't find the recovery link, delete the plugin from your wp-content/plugins directory. Then remove any lines in your .htaccess file between
|
234 |
+
# BEGIN WP Hide & Security Enhancer
|
235 |
+
..
|
236 |
+
# END WP Hide & Security Enhancer
|
237 |
|
238 |
* At this point the site should run as before. If for some reason still not working, you missed something, please get in touch with us at electronice_delphi@yahoo.com and we'll fix it for you in no time!
|
239 |
|
252 |
|
253 |
== Changelog ==
|
254 |
|
255 |
+
= 1.4.7.4 =
|
256 |
+
* WooCommerce downloadables fix when using custom slug for uploads
|
257 |
+
* Include support for admin_url() along with admin-ajax.php
|
258 |
+
* Fixed redirect link after user register.
|
259 |
+
* Use get_rewrite_base and get_rewrite_to_base for all modules to apply correct site path and any WordPress subdirectory install
|
260 |
+
* WordPress subdirectory install compatibility fix
|
261 |
+
* Improved router file processor for WordPress subdirectory installs
|
262 |
+
|
263 |
= 1.4.7 =
|
264 |
* Rewrite changes for many components
|
265 |
* Rewrite update for admin and login url
|
wp-hide.php
CHANGED
@@ -5,7 +5,7 @@ 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.4.7
|
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.4.7.4
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|