Version Description
- Fixed upload rewrite by using default_variables['upload_url']
- WordPrss 5.0 compatibility check
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.5.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.2.1
- modules/components/rewrite-new_upload_path.php +3 -7
- readme.txt +6 -2
- wp-hide.php +1 -1
modules/components/rewrite-new_upload_path.php
CHANGED
@@ -94,10 +94,8 @@
|
|
94 |
//check if the field is noe empty
|
95 |
if(empty($saved_field_data))
|
96 |
return $processing_response;
|
97 |
-
|
98 |
-
$
|
99 |
-
|
100 |
-
$uploads_path = $this->wph->functions->get_url_path( $wp_upload_dir['baseurl'] );
|
101 |
|
102 |
$rewrite_base = trailingslashit( $saved_field_data );
|
103 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $uploads_path );
|
@@ -153,9 +151,7 @@
|
|
153 |
if (empty( $new_upload_path ))
|
154 |
return FALSE;
|
155 |
|
156 |
-
$
|
157 |
-
|
158 |
-
$default_upload_url = untrailingslashit ( $wp_upload_dir['baseurl'] );
|
159 |
$default_upload_url = str_replace( site_url(), "", $default_upload_url);
|
160 |
$default_upload_url = ltrim(rtrim($default_upload_url, "/"), "/");
|
161 |
|
94 |
//check if the field is noe empty
|
95 |
if(empty($saved_field_data))
|
96 |
return $processing_response;
|
97 |
+
|
98 |
+
$uploads_path = $this->wph->functions->get_url_path( $this->wph->default_variables['upload_url'] );
|
|
|
|
|
99 |
|
100 |
$rewrite_base = trailingslashit( $saved_field_data );
|
101 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $uploads_path );
|
151 |
if (empty( $new_upload_path ))
|
152 |
return FALSE;
|
153 |
|
154 |
+
$default_upload_url = untrailingslashit ( $this->wph->default_variables['upload_url'] );
|
|
|
|
|
155 |
$default_upload_url = str_replace( site_url(), "", $default_upload_url);
|
156 |
$default_upload_url = ltrim(rtrim($default_upload_url, "/"), "/");
|
157 |
|
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:
|
7 |
-
Stable tag: 1.5.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
|
@@ -271,6 +271,10 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
271 |
|
272 |
== Changelog ==
|
273 |
|
|
|
|
|
|
|
|
|
274 |
= 1.5.2 =
|
275 |
* Updated po language file
|
276 |
* CDN support when using custom urls
|
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.0
|
7 |
+
Stable tag: 1.5.2.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= 1.5.2.1 =
|
275 |
+
* Fixed upload rewrite by using default_variables['upload_url']
|
276 |
+
* WordPrss 5.0 compatibility check
|
277 |
+
|
278 |
= 1.5.2 =
|
279 |
* Updated po language file
|
280 |
* CDN support when using custom urls
|
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.2
|
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.2.1
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|