Version Description
- WP Job Manager - compatibility update
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.6.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.6.0.5 to 1.6.0.6
- compatibility/general.php +4 -84
- compatibility/wp-job-manager.php +116 -0
- compatibility/wp-rocket.php +1 -1
- include/admin-interfaces/setup.class.php +1 -1
- include/class.compatibility.php +3 -0
- languages/wp-hide-security-enhancer.mo +0 -0
- languages/wp-hide-security-enhancer.po +6 -7
- readme.txt +4 -1
- wp-hide.php +1 -1
compatibility/general.php
CHANGED
@@ -6,96 +6,16 @@
|
|
6 |
*
|
7 |
*/
|
8 |
|
9 |
-
|
|
|
10 |
class WPH_conflict_handle_General
|
11 |
{
|
12 |
|
13 |
static function init()
|
14 |
{
|
15 |
-
|
16 |
-
{
|
17 |
-
//adjust the uplod_data
|
18 |
-
add_filter('upload_dir', array('WPH_conflict_handle_General', 'upload_dir' ), 999);
|
19 |
-
}
|
20 |
}
|
21 |
-
|
22 |
-
static function is_plugin_active( $plugin_path )
|
23 |
-
{
|
24 |
-
|
25 |
-
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
26 |
-
|
27 |
-
if(is_plugin_active( $plugin_path ) || is_plugin_active_for_network( $plugin_path ))
|
28 |
-
return TRUE;
|
29 |
-
else
|
30 |
-
return FALSE;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Process the upload_dir data
|
35 |
-
*
|
36 |
-
* @param mixed $data
|
37 |
-
*/
|
38 |
-
static function upload_dir( $data )
|
39 |
-
{
|
40 |
-
|
41 |
-
if ( ! self::check_backtrace_for_caller('create_attachment', 'WP_Job_Manager_Form_Submit_Job'))
|
42 |
-
return $data;
|
43 |
-
|
44 |
-
global $wph;
|
45 |
-
|
46 |
-
$new_upload_path = $wph->functions->untrailingslashit_all( $wph->functions->get_module_item_setting('new_upload_path') );
|
47 |
-
$new_content_path = $wph->functions->untrailingslashit_all( $wph->functions->get_module_item_setting('new_content_path') );
|
48 |
-
|
49 |
-
if ( empty ( $new_upload_path ) && empty ( $new_content_path ) )
|
50 |
-
return $data;
|
51 |
-
|
52 |
-
if ( ! empty ( $new_upload_path ) )
|
53 |
-
{
|
54 |
-
$new_url = trailingslashit( home_url() ) . $new_upload_path;
|
55 |
-
|
56 |
-
if ( is_multisite() && ! ( is_main_network() && is_main_site() && defined( 'MULTISITE' ) ) )
|
57 |
-
{
|
58 |
-
$ms_dir = '/sites/' . get_current_blog_id();
|
59 |
-
$new_url .= $ms_dir;
|
60 |
-
}
|
61 |
-
}
|
62 |
-
else
|
63 |
-
{
|
64 |
-
$new_url = trailingslashit( home_url() ) . str_replace( '/wp-content' , $new_content_path, $wph->default_variables['uploads_directory'] );
|
65 |
-
}
|
66 |
-
|
67 |
-
$data['url'] = str_replace($data['baseurl'], $new_url, $data['url']);
|
68 |
-
$data['baseurl'] = $new_url;
|
69 |
-
|
70 |
-
return $data;
|
71 |
-
}
|
72 |
-
|
73 |
-
|
74 |
-
static function check_backtrace_for_caller( $function_name, $class_name = FALSE )
|
75 |
-
{
|
76 |
-
|
77 |
-
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
78 |
-
foreach ( $backtrace as $block )
|
79 |
-
{
|
80 |
-
if ( $block['function'] == $function_name )
|
81 |
-
{
|
82 |
-
if ( $class_name === FALSE )
|
83 |
-
return TRUE;
|
84 |
-
|
85 |
-
if ( $class_name != FALSE && !isset( $block['class'] ) )
|
86 |
-
return FALSE;
|
87 |
-
|
88 |
-
if ( $block['class'] == $class_name )
|
89 |
-
return TRUE;
|
90 |
-
|
91 |
-
return FALSE;
|
92 |
-
|
93 |
-
}
|
94 |
-
|
95 |
-
}
|
96 |
-
|
97 |
-
return FALSE;
|
98 |
-
}
|
99 |
|
100 |
|
101 |
}
|
6 |
*
|
7 |
*/
|
8 |
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
10 |
+
|
11 |
class WPH_conflict_handle_General
|
12 |
{
|
13 |
|
14 |
static function init()
|
15 |
{
|
16 |
+
//nothing at the moment
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
|
21 |
}
|
compatibility/wp-job-manager.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Compatibility for Plugin Name: WP Job Manager
|
5 |
+
* Compatibility checked on Version: 1.34.2
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
9 |
+
|
10 |
+
class WPH_conflict_handle_job_manager
|
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('upload_dir', array( $this, 'upload_dir' ), 999);
|
24 |
+
|
25 |
+
}
|
26 |
+
|
27 |
+
function is_plugin_active( )
|
28 |
+
{
|
29 |
+
|
30 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
31 |
+
|
32 |
+
if( is_plugin_active( 'wp-job-manager/wp-job-manager.php' ) )
|
33 |
+
return TRUE;
|
34 |
+
else
|
35 |
+
return FALSE;
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Process the upload_dir data
|
41 |
+
*
|
42 |
+
* @param mixed $data
|
43 |
+
*/
|
44 |
+
function upload_dir( $data )
|
45 |
+
{
|
46 |
+
|
47 |
+
if ( ! $this->check_backtrace_for_caller( array ( array ( 'create_attachment', 'WP_Job_Manager_Form_Submit_Job') , array ('validate_fields', 'WP_Job_Manager_Form_Submit_Job') ) ) )
|
48 |
+
return $data;
|
49 |
+
|
50 |
+
global $wph;
|
51 |
+
|
52 |
+
$new_upload_path = $wph->functions->untrailingslashit_all( $wph->functions->get_module_item_setting('new_upload_path') );
|
53 |
+
$new_content_path = $wph->functions->untrailingslashit_all( $wph->functions->get_module_item_setting('new_content_path') );
|
54 |
+
|
55 |
+
if ( empty ( $new_upload_path ) && empty ( $new_content_path ) )
|
56 |
+
return $data;
|
57 |
+
|
58 |
+
if ( ! empty ( $new_upload_path ) )
|
59 |
+
{
|
60 |
+
$new_url = trailingslashit( home_url() ) . $new_upload_path;
|
61 |
+
|
62 |
+
if ( is_multisite() && ! ( is_main_network() && is_main_site() && defined( 'MULTISITE' ) ) )
|
63 |
+
{
|
64 |
+
$ms_dir = '/sites/' . get_current_blog_id();
|
65 |
+
$new_url .= $ms_dir;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
else
|
69 |
+
{
|
70 |
+
$new_url = trailingslashit( home_url() ) . str_replace( '/wp-content' , $new_content_path, $wph->default_variables['uploads_directory'] );
|
71 |
+
}
|
72 |
+
|
73 |
+
$data['url'] = str_replace($data['baseurl'], $new_url, $data['url']);
|
74 |
+
$data['baseurl'] = $new_url;
|
75 |
+
|
76 |
+
return $data;
|
77 |
+
}
|
78 |
+
|
79 |
+
|
80 |
+
function check_backtrace_for_caller( $groups )
|
81 |
+
{
|
82 |
+
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
83 |
+
foreach ( $groups as $group )
|
84 |
+
{
|
85 |
+
$function_name = $group[0];
|
86 |
+
$class_name = isset ( $group[1] ) ? $group[1] : FALSE;
|
87 |
+
|
88 |
+
foreach ( $backtrace as $block )
|
89 |
+
{
|
90 |
+
if ( $block['function'] == $function_name )
|
91 |
+
{
|
92 |
+
if ( $class_name === FALSE )
|
93 |
+
return TRUE;
|
94 |
+
|
95 |
+
if ( $class_name != FALSE && !isset( $block['class'] ) )
|
96 |
+
return FALSE;
|
97 |
+
|
98 |
+
if ( $block['class'] == $class_name )
|
99 |
+
return TRUE;
|
100 |
+
|
101 |
+
return FALSE;
|
102 |
+
|
103 |
+
}
|
104 |
+
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
return FALSE;
|
109 |
+
}
|
110 |
+
|
111 |
+
}
|
112 |
+
|
113 |
+
|
114 |
+
new WPH_conflict_handle_job_manager();
|
115 |
+
|
116 |
+
?>
|
compatibility/wp-rocket.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
-
* Compatibility for Plugin Name:
|
5 |
* Compatibility checked on Version:
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
+
* Compatibility for Plugin Name: WP Rocket
|
5 |
* Compatibility checked on Version:
|
6 |
*/
|
7 |
|
include/admin-interfaces/setup.class.php
CHANGED
@@ -202,7 +202,7 @@
|
|
202 |
<h2><?php _e( "Sample setup", 'wp-hide-security-enhancer' ) ?></h2>
|
203 |
</div>
|
204 |
<div class="container-description">
|
205 |
-
<p><?php _e( "This creates a simple setup to get you started. The procedure activates some of the basic plugin options. All options will be reset and any existing values will be overwritten, so use with caution. After the procedure, for all
|
206 |
<form id="wph-run-sample-setup" method="post" action="admin.php?page=wp-hide">
|
207 |
<p><a href="javascript: void(0)" onclick="return WPH.confirm_sample_setup();" class="button-primary"><?php _e( "Run Sample Setup", 'wp-hide-security-enhancer' ) ?></a></p>
|
208 |
|
202 |
<h2><?php _e( "Sample setup", 'wp-hide-security-enhancer' ) ?></h2>
|
203 |
</div>
|
204 |
<div class="container-description">
|
205 |
+
<p><?php _e( "This creates a simple setup to get you started. The procedure activates some of the basic plugin options. All options will be reset and any existing values will be overwritten, so use with caution. After the procedure, for all basic sites, the WordPress CMS will be already hidden, otherwise further options adjustments will be necessary", 'wp-hide-security-enhancer' ) ?>.</p>
|
206 |
<form id="wph-run-sample-setup" method="post" action="admin.php?page=wp-hide">
|
207 |
<p><a href="javascript: void(0)" onclick="return WPH.confirm_sample_setup();" class="button-primary"><?php _e( "Run Sample Setup", 'wp-hide-security-enhancer' ) ?></a></p>
|
208 |
|
include/class.compatibility.php
CHANGED
@@ -118,6 +118,9 @@
|
|
118 |
//WP Speed of Light
|
119 |
include_once(WPH_PATH . 'compatibility/wp-speed-of-light.php');
|
120 |
|
|
|
|
|
|
|
121 |
/**
|
122 |
* Themes
|
123 |
*/
|
118 |
//WP Speed of Light
|
119 |
include_once(WPH_PATH . 'compatibility/wp-speed-of-light.php');
|
120 |
|
121 |
+
//WP Job Manager
|
122 |
+
include_once(WPH_PATH . 'compatibility/wp-job-manager.php');
|
123 |
+
|
124 |
/**
|
125 |
* Themes
|
126 |
*/
|
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: 2020-07-
|
5 |
-
"PO-Revision-Date: 2020-07-
|
6 |
"Last-Translator: NspCode <contact@nsp-code.com>\n"
|
7 |
"Language-Team: Nsp Code\n"
|
8 |
"Language: en\n"
|
@@ -86,9 +86,8 @@ msgstr ""
|
|
86 |
|
87 |
#: include/admin-interfaces/setup.class.php:166
|
88 |
msgid ""
|
89 |
-
"A basic plugin set-up
|
90 |
-
"clear is
|
91 |
-
"side"
|
92 |
msgstr ""
|
93 |
|
94 |
#: include/admin-interfaces/setup.class.php:167
|
@@ -189,8 +188,8 @@ msgid ""
|
|
189 |
"This creates a simple setup to get you started. The procedure activates some "
|
190 |
"of the basic plugin options. All options will be reset and any existing "
|
191 |
"values will be overwritten, so use with caution. After the procedure, for "
|
192 |
-
"all
|
193 |
-
"
|
194 |
msgstr ""
|
195 |
|
196 |
#: include/admin-interfaces/setup.class.php:207
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Hide & Security Enhancer\n"
|
4 |
+
"POT-Creation-Date: 2020-07-14 21:11+0300\n"
|
5 |
+
"PO-Revision-Date: 2020-07-14 21:11+0300\n"
|
6 |
"Last-Translator: NspCode <contact@nsp-code.com>\n"
|
7 |
"Language-Team: Nsp Code\n"
|
8 |
"Language: en\n"
|
86 |
|
87 |
#: include/admin-interfaces/setup.class.php:166
|
88 |
msgid ""
|
89 |
+
"A basic plugin set-up has been deployed, to get you started. A site cache "
|
90 |
+
"clear is required to ensure the updates are reflected on the front side"
|
|
|
91 |
msgstr ""
|
92 |
|
93 |
#: include/admin-interfaces/setup.class.php:167
|
188 |
"This creates a simple setup to get you started. The procedure activates some "
|
189 |
"of the basic plugin options. All options will be reset and any existing "
|
190 |
"values will be overwritten, so use with caution. After the procedure, for "
|
191 |
+
"all basic sites, the WordPress CMS will be already hidden, otherwise further "
|
192 |
+
"options adjustments will be necessary"
|
193 |
msgstr ""
|
194 |
|
195 |
#: include/admin-interfaces/setup.class.php:207
|
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.4.2
|
7 |
-
Stable tag: 1.6.0.
|
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
|
@@ -344,6 +344,9 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
344 |
|
345 |
== Changelog ==
|
346 |
|
|
|
|
|
|
|
347 |
= 1.6.0.5 =
|
348 |
* New Setup interface with helps and hints on how to use the plugin.
|
349 |
* New Sample Setup, which deploy a basic set-up of plugin options
|
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.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
|
344 |
|
345 |
== Changelog ==
|
346 |
|
347 |
+
= 1.6.0.6 =
|
348 |
+
* WP Job Manager - compatibility update
|
349 |
+
|
350 |
= 1.6.0.5 =
|
351 |
* New Setup interface with helps and hints on how to use the plugin.
|
352 |
* New Sample Setup, which deploy a basic set-up of plugin options
|
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.0.
|
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.6.0.6
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|