Version Description
- Allow rewrite for images within admin, as being reversed to default when saving the post
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.5.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.4.1
- modules/components/rewrite-new_upload_path.php +1 -26
- readme.txt +4 -1
- wp-hide.php +1 -1
modules/components/rewrite-new_upload_path.php
CHANGED
@@ -51,32 +51,7 @@
|
|
51 |
{
|
52 |
if(empty($saved_field_data))
|
53 |
return FALSE;
|
54 |
-
|
55 |
-
//Preserver uploads urls
|
56 |
-
$preserve_upload_url = TRUE;
|
57 |
-
//only within admin
|
58 |
-
if( ! is_admin() )
|
59 |
-
$preserve_upload_url = FALSE;
|
60 |
-
//only if block_upload_url is set to no
|
61 |
-
if($preserve_upload_url && $this->wph->functions->get_module_item_setting('block_upload_url') != 'no')
|
62 |
-
$preserve_upload_url = FALSE;
|
63 |
-
if($preserve_upload_url && defined('DOING_AJAX') && constant('DOING_AJAX') === TRUE)
|
64 |
-
{
|
65 |
-
if(isset($_POST['action']) && !in_array(sanitize_text_field($_POST['action']), array('query-attachments', 'upload-attachment', 'send-attachment-to-editor', 'set-post-thumbnail')))
|
66 |
-
$preserve_upload_url = FALSE;
|
67 |
-
}
|
68 |
-
|
69 |
-
if( $preserve_upload_url === TRUE )
|
70 |
-
{
|
71 |
-
//preserve the links
|
72 |
-
$this->wph->functions->add_replacement( $this->wph->default_variables['upload_url'], 'WPH-preserved-upload-url', 'high');
|
73 |
-
|
74 |
-
//restore the original url
|
75 |
-
$this->wph->functions->add_replacement( 'WPH-preserved-upload-url', $this->wph->default_variables['upload_url'], 'low');
|
76 |
-
|
77 |
-
return;
|
78 |
-
}
|
79 |
-
|
80 |
//add default plugin path replacement
|
81 |
$new_upload_path = $this->wph->functions->untrailingslashit_all( $this->wph->functions->get_module_item_setting('new_upload_path') );
|
82 |
$new_url = trailingslashit( home_url() ) . $new_upload_path;
|
51 |
{
|
52 |
if(empty($saved_field_data))
|
53 |
return FALSE;
|
54 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
//add default plugin path replacement
|
56 |
$new_upload_path = $this->wph->functions->untrailingslashit_all( $this->wph->functions->get_module_item_setting('new_upload_path') );
|
57 |
$new_url = trailingslashit( home_url() ) . $new_upload_path;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.4
|
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,9 @@ 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.4 =
|
275 |
* Compatibility re-structure, use a general module
|
276 |
* Compatibility fix for Shield Security wp-simple-firewall
|
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.4.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.4.1 =
|
275 |
+
* Allow rewrite for images within admin, as being reversed to default when saving the post
|
276 |
+
|
277 |
= 1.5.4 =
|
278 |
* Compatibility re-structure, use a general module
|
279 |
* Compatibility fix for Shield Security wp-simple-firewall
|
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.4
|
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.4.1
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|