Version Description
- Do not redirect to new admin url unless rewrite_rules_applied()
- Generate no rewrite rules if there's no options / reset
- Removed any passed through variables when calling the do_action('wph/settings_changed') as the function can take no argument.
- Re-generate a new write_check_string on settings change to ensure if no .htacccess / web.config file is writable, it trigger correct error and flag the disable_filters variable.
- Use inline JS code confirmation for Reset Settings, in case the separate JavaScript file is not loaded caused by an rewrite issue.
- Reset confirmation message update to better inform the admin upon the procedure to follow.
- WPEngine environment check, as they do not support Apache rewrite out of the box
- Strip off protocol and any www prefix for site_url and home_url to ensure accurate comparing
- Fixed redirect url when saving the options and WordPress deployed in subfolder
- Fixed redirect url when reset all options and WordPress deployed in subfolder
- Improved compatibility for WordPress subfolder install
- Fixed some rewrite lines when WordPress installed in a path and subfolder
- Replaced the internal variable permalinks_not_applied to more intuitive custom_permalinks_applied
- Restart the buffering if flushed out, mainly used for footer when updating plugins and themes
- Add textdomain for multiple untranslated texts
- Updated PO language file
- Fixed textdomain for couple texts
- Add text to textdomain
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.5.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.9.1 to 1.5.1.2
- css/wph.css +2 -1
- include/admin-interface.class.php +15 -2
- include/functions.class.php +26 -18
- include/wph.class.php +49 -33
- js/wph.js +1 -9
- languages/wp-hide-security-enhancer.mo +0 -0
- languages/wp-hide-security-enhancer.po +211 -44
- modules/components/admin-admin_url.php +16 -12
- modules/components/admin-new_wp_login_php.php +7 -7
- modules/components/general-feed.php +1 -1
- modules/components/general-headers.php +2 -2
- modules/components/general-html.php +7 -7
- modules/components/general-meta.php +10 -10
- modules/components/general-oembed.php +1 -1
- modules/components/{general-tobots-txt.php → general-robots-txt.php} +1 -1
- modules/components/general-scripts.php +1 -1
- modules/components/general-styles.php +2 -2
- modules/components/general-wpemoji.php +2 -2
- modules/components/rewrite-new_include_path.php +6 -6
- modules/components/rewrite-new_upload_path.php +2 -7
- modules/components/rewrite-new_xml-rpc-path.php +1 -1
- modules/components/rewrite-root-files.php +3 -3
- modules/components/rewrite-wp_content_path.php +4 -4
- modules/module-general.php +1 -1
- readme.txt +22 -2
- router/environment.php +1 -1
- wp-hide.php +3 -8
css/wph.css
CHANGED
@@ -6,7 +6,8 @@
|
|
6 |
#wph h3.handle {border-bottom: 1px solid #e1e1e1; font-size: 14px; line-height: 1.4; margin: 0; padding: 8px 12px;}
|
7 |
#wph .postbox {margin-bottom: 0px}
|
8 |
#wph .wph_input fieldset label {padding-bottom: 5px; display: block;}
|
9 |
-
#wph #reset_settings_form {
|
|
|
10 |
#wph span.wph-pro {background-color: #f04d46; color:#FFF; font-weight: bold;display: inline-block; padding: 2px 4px;}
|
11 |
|
12 |
table.wph_input { border: 0 none; background: #fff;}
|
6 |
#wph h3.handle {border-bottom: 1px solid #e1e1e1; font-size: 14px; line-height: 1.4; margin: 0; padding: 8px 12px;}
|
7 |
#wph .postbox {margin-bottom: 0px}
|
8 |
#wph .wph_input fieldset label {padding-bottom: 5px; display: block;}
|
9 |
+
#wph #reset_settings_form .reset_settings { margin-top: -31px;}
|
10 |
+
#wph h2 #reset_settings, #wph #reset_settings_form .reset_settings { font-size: 11px; height: auto; line-height: 20px; padding: 1px 5px;}
|
11 |
#wph span.wph-pro {background-color: #f04d46; color:#FFF; font-weight: bold;display: inline-block; padding: 2px 4px;}
|
12 |
|
13 |
table.wph_input { border: 0 none; background: #fff;}
|
include/admin-interface.class.php
CHANGED
@@ -114,7 +114,7 @@
|
|
114 |
<tr class="submit">
|
115 |
<td class="label"> </td>
|
116 |
<td class="label">
|
117 |
-
<input type="submit" value="Save" class="button-primary alignright">
|
118 |
</td>
|
119 |
</tr>
|
120 |
|
@@ -249,11 +249,24 @@
|
|
249 |
}
|
250 |
|
251 |
?>
|
252 |
-
<a href="javascript:void(0)" class="button-secondary cancel alignright" onClick="WPH.setting_reset()" id="reset_settings" type="button">Reset All Settings</a>
|
253 |
</h2>
|
254 |
<form id="reset_settings_form" action="<?php echo esc_url(admin_url( 'admin.php?page=wp-hide')) ?>" method="post">
|
255 |
<input type="hidden" name="reset-settings" value="true" />
|
256 |
<?php wp_nonce_field( 'wp-hide-reset-settings', '_wpnonce' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
</form>
|
258 |
|
259 |
<?php
|
114 |
<tr class="submit">
|
115 |
<td class="label"> </td>
|
116 |
<td class="label">
|
117 |
+
<input type="submit" value="<?php _e('Save', 'wp-hide-security-enhancer') ?>" class="button-primary alignright">
|
118 |
</td>
|
119 |
</tr>
|
120 |
|
249 |
}
|
250 |
|
251 |
?>
|
|
|
252 |
</h2>
|
253 |
<form id="reset_settings_form" action="<?php echo esc_url(admin_url( 'admin.php?page=wp-hide')) ?>" method="post">
|
254 |
<input type="hidden" name="reset-settings" value="true" />
|
255 |
<?php wp_nonce_field( 'wp-hide-reset-settings', '_wpnonce' ); ?>
|
256 |
+
|
257 |
+
<input type="button" class="reset_settings button-secondary cancel alignright" value="Reset All Settings" onclick="wph_setting_reset_confirmation ();">
|
258 |
+
<script type='text/javascript'>
|
259 |
+
function wph_setting_reset_confirmation ()
|
260 |
+
{
|
261 |
+
var agree = confirm(wph_vars.reset_confirmation);
|
262 |
+
if (!agree)
|
263 |
+
return false;
|
264 |
+
|
265 |
+
document.getElementById("reset_settings_form").submit();
|
266 |
+
}
|
267 |
+
|
268 |
+
</script>
|
269 |
+
|
270 |
</form>
|
271 |
|
272 |
<?php
|
include/functions.class.php
CHANGED
@@ -83,10 +83,8 @@
|
|
83 |
//only for admins
|
84 |
If ( ! current_user_can ( 'manage_options' ) )
|
85 |
return FALSE;
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
foreach($wph->modules as $module)
|
90 |
{
|
91 |
//proces the fields
|
92 |
$module_settings = $this->filter_settings( $module->get_module_settings(), TRUE );
|
@@ -101,21 +99,24 @@
|
|
101 |
$value = isset($module_setting['default_value']) ? $module_setting['default_value'] : '';
|
102 |
|
103 |
//save the value
|
104 |
-
$wph->settings['module_settings'][ $field_name ] = $value;
|
105 |
}
|
106 |
|
107 |
}
|
|
|
|
|
|
|
108 |
|
109 |
//update the settings
|
110 |
-
$this->update_settings($wph->settings);
|
111 |
|
112 |
//trigger the settings changed action
|
113 |
-
do_action('wph/settings_changed',
|
114 |
|
115 |
//redirect
|
116 |
$new_admin_url = $this->get_module_item_setting('admin_url' , 'admin');
|
117 |
if(!empty($new_admin_url) && $this->is_permalink_enabled())
|
118 |
-
$new_location = trailingslashit(
|
119 |
else
|
120 |
$new_location = trailingslashit( site_url() ) . "wp-admin/admin.php?page=wp-hide";
|
121 |
|
@@ -160,9 +161,7 @@
|
|
160 |
}
|
161 |
|
162 |
}
|
163 |
-
|
164 |
-
global $wph;
|
165 |
-
|
166 |
//proces the fields
|
167 |
$module_settings = $this->filter_settings( $module->get_module_settings($tab_slug) );
|
168 |
|
@@ -197,7 +196,7 @@
|
|
197 |
);
|
198 |
}
|
199 |
else
|
200 |
-
$wph->settings['module_settings'][ $field_name ] = $value;
|
201 |
}
|
202 |
|
203 |
//delete previous errors transient
|
@@ -209,7 +208,7 @@
|
|
209 |
$process_interface_save_errors = array();
|
210 |
|
211 |
//put the new values into a temporary settings variable
|
212 |
-
$_settings_ = $wph->settings['module_settings'];
|
213 |
foreach($unique_require_updated_settings as $field_name => $data)
|
214 |
{
|
215 |
$_settings_[ $field_name ] = $data['value'];
|
@@ -241,10 +240,14 @@
|
|
241 |
if( $errors === FALSE)
|
242 |
{
|
243 |
//put to main setting holder
|
244 |
-
$wph->settings['module_settings'] = $_settings_;
|
245 |
-
|
|
|
|
|
|
|
|
|
246 |
//update the settings
|
247 |
-
$this->update_settings($wph->settings);
|
248 |
|
249 |
//trigger the settings changed action
|
250 |
do_action('wph/settings_changed', $screen_slug, $tab_slug);
|
@@ -256,8 +259,13 @@
|
|
256 |
|
257 |
//redirect
|
258 |
$new_admin_url = $this->get_module_item_setting('admin_url' , 'admin');
|
|
|
|
|
|
|
|
|
|
|
259 |
if(!empty($new_admin_url) && $this->is_permalink_enabled())
|
260 |
-
$new_location = trailingslashit(
|
261 |
else
|
262 |
$new_location = trailingslashit( site_url() ) . "wp-admin/admin.php?page=" . $screen_slug;
|
263 |
|
@@ -437,7 +445,7 @@
|
|
437 |
$home_path = $this->get_home_path();
|
438 |
$htaccess_file = $home_path . DIRECTORY_SEPARATOR . '.htaccess';
|
439 |
|
440 |
-
if ((!file_exists($htaccess_file) &&
|
441 |
{
|
442 |
if ( $this->got_mod_rewrite() )
|
443 |
return TRUE;
|
83 |
//only for admins
|
84 |
If ( ! current_user_can ( 'manage_options' ) )
|
85 |
return FALSE;
|
86 |
+
|
87 |
+
foreach($this->wph->modules as $module)
|
|
|
|
|
88 |
{
|
89 |
//proces the fields
|
90 |
$module_settings = $this->filter_settings( $module->get_module_settings(), TRUE );
|
99 |
$value = isset($module_setting['default_value']) ? $module_setting['default_value'] : '';
|
100 |
|
101 |
//save the value
|
102 |
+
$this->wph->settings['module_settings'][ $field_name ] = $value;
|
103 |
}
|
104 |
|
105 |
}
|
106 |
+
|
107 |
+
//eset the write string
|
108 |
+
$this->wph->settings['write_check_string'] = '';
|
109 |
|
110 |
//update the settings
|
111 |
+
$this->update_settings($this->wph->settings);
|
112 |
|
113 |
//trigger the settings changed action
|
114 |
+
do_action('wph/settings_changed', null, null);
|
115 |
|
116 |
//redirect
|
117 |
$new_admin_url = $this->get_module_item_setting('admin_url' , 'admin');
|
118 |
if(!empty($new_admin_url) && $this->is_permalink_enabled())
|
119 |
+
$new_location = trailingslashit( home_url() ) . $new_admin_url . "/admin.php?page=wp-hide";
|
120 |
else
|
121 |
$new_location = trailingslashit( site_url() ) . "wp-admin/admin.php?page=wp-hide";
|
122 |
|
161 |
}
|
162 |
|
163 |
}
|
164 |
+
|
|
|
|
|
165 |
//proces the fields
|
166 |
$module_settings = $this->filter_settings( $module->get_module_settings($tab_slug) );
|
167 |
|
196 |
);
|
197 |
}
|
198 |
else
|
199 |
+
$this->wph->settings['module_settings'][ $field_name ] = $value;
|
200 |
}
|
201 |
|
202 |
//delete previous errors transient
|
208 |
$process_interface_save_errors = array();
|
209 |
|
210 |
//put the new values into a temporary settings variable
|
211 |
+
$_settings_ = $this->wph->settings['module_settings'];
|
212 |
foreach($unique_require_updated_settings as $field_name => $data)
|
213 |
{
|
214 |
$_settings_[ $field_name ] = $data['value'];
|
240 |
if( $errors === FALSE)
|
241 |
{
|
242 |
//put to main setting holder
|
243 |
+
$this->wph->settings['module_settings'] = $_settings_;
|
244 |
+
|
245 |
+
//generate a new write_check_string
|
246 |
+
$write_check_string = time() . '_' . mt_rand(100, 99999);
|
247 |
+
$this->wph->settings['write_check_string'] = $write_check_string;
|
248 |
+
|
249 |
//update the settings
|
250 |
+
$this->update_settings($this->wph->settings);
|
251 |
|
252 |
//trigger the settings changed action
|
253 |
do_action('wph/settings_changed', $screen_slug, $tab_slug);
|
259 |
|
260 |
//redirect
|
261 |
$new_admin_url = $this->get_module_item_setting('admin_url' , 'admin');
|
262 |
+
|
263 |
+
//check if the rewrite applied
|
264 |
+
if ( ! empty ( $new_admin_url ) && ! $this->rewrite_rules_applied() )
|
265 |
+
$new_admin_url = '';
|
266 |
+
|
267 |
if(!empty($new_admin_url) && $this->is_permalink_enabled())
|
268 |
+
$new_location = trailingslashit( home_url() ) . $new_admin_url . "/admin.php?page=" . $screen_slug;
|
269 |
else
|
270 |
$new_location = trailingslashit( site_url() ) . "wp-admin/admin.php?page=" . $screen_slug;
|
271 |
|
445 |
$home_path = $this->get_home_path();
|
446 |
$htaccess_file = $home_path . DIRECTORY_SEPARATOR . '.htaccess';
|
447 |
|
448 |
+
if ((!file_exists($htaccess_file) && $this->using_mod_rewrite_permalinks()) || is_writable($htaccess_file))
|
449 |
{
|
450 |
if ( $this->got_mod_rewrite() )
|
451 |
return TRUE;
|
include/wph.class.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
|
21 |
var $disable_filters = FALSE;
|
22 |
var $disable_ob_start_callback = FALSE;
|
23 |
-
var $
|
24 |
|
25 |
var $doing_interface_save = FALSE;
|
26 |
var $doing_reset_settings = FALSE;
|
@@ -82,8 +82,12 @@
|
|
82 |
$this->disable_filters = TRUE;
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
85 |
//check for permalink issues
|
86 |
-
$this->
|
87 |
|
88 |
$this->get_default_variables();
|
89 |
|
@@ -147,6 +151,9 @@
|
|
147 |
//admin notices
|
148 |
add_action( 'admin_notices', array(&$this, 'admin_notices'));
|
149 |
add_action( 'network_admin_notices', array(&$this, 'admin_notices'));
|
|
|
|
|
|
|
150 |
|
151 |
$this->is_initialised = TRUE;
|
152 |
}
|
@@ -221,7 +228,7 @@
|
|
221 |
usort($module_settings, array($this->functions, 'array_sort_by_processing_order'));
|
222 |
|
223 |
|
224 |
-
if($this->disable_filters || !is_array($module_settings) || count($module_settings) < 1)
|
225 |
continue;
|
226 |
|
227 |
foreach($module_settings as $module_setting)
|
@@ -233,7 +240,7 @@
|
|
233 |
$_class_instance = isset($module_setting['class_instance']) ? $module_setting['class_instance'] : $module;
|
234 |
|
235 |
//ignore callbacks if permalink is turned OFF
|
236 |
-
if($this->functions->is_permalink_enabled()
|
237 |
{
|
238 |
$_callback = isset($module_setting['callback']) ? $module_setting['callback'] : '';
|
239 |
if(empty($_callback))
|
@@ -306,7 +313,7 @@
|
|
306 |
|
307 |
// Localize the script with new data
|
308 |
$translation_array = array(
|
309 |
-
'reset_confirmation' => __('Are you sure to reset all settings? All options will be removed.', 'wp-hide-security-enhancer')
|
310 |
);
|
311 |
wp_localize_script( 'wph', 'wph_vars', $translation_array );
|
312 |
|
@@ -340,20 +347,26 @@
|
|
340 |
{
|
341 |
global $wp_rewrite;
|
342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
if ( is_multisite() )
|
344 |
{
|
345 |
-
echo "<div class='error'><p>". __("This plugin version can't handle MultiSite environment, please check with PRO version at", 'wp-hide-security-enhancer') . ' <a target="_blank" href="https://www.wp-hide.com/wp-hide-pro-now-available/">WP-Hide PRO</a></p></div>';
|
346 |
}
|
347 |
|
348 |
if(! $this->functions->is_muloader())
|
349 |
{
|
350 |
-
echo "<div class='error'><p>". __('Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please make sure this location is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
|
351 |
}
|
352 |
|
353 |
//check for permalinks enabled
|
354 |
if (!$this->functions->is_permalink_enabled())
|
355 |
{
|
356 |
-
echo "<div class='error'><p>". __('Permalink is required to be turned ON for WP Hide & Security Enhancer to work', 'wp-hide-security-enhancer') ."</p></div>";
|
357 |
}
|
358 |
|
359 |
if($this->server_htaccess_config === FALSE && $this->server_web_config === FALSE)
|
@@ -369,10 +382,10 @@
|
|
369 |
if(empty($_write_check_string) || $_write_check_string != $this->settings['write_check_string'])
|
370 |
{
|
371 |
if($this->server_htaccess_config === TRUE)
|
372 |
-
echo "<div class='error'><p>". __('Unable to write custom rules to your .htaccess. Is this file writable? <br />No
|
373 |
|
374 |
if($this->server_web_config === TRUE)
|
375 |
-
echo "<div class='error'><p>". __('Unable to write custom rules to your web.config. Is this file writable? <br />No
|
376 |
}
|
377 |
}
|
378 |
|
@@ -380,12 +393,12 @@
|
|
380 |
//check if the cache dir is available
|
381 |
if(! is_writable( WPH_CACHE_PATH ))
|
382 |
{
|
383 |
-
echo "<div class='error'><p>". __('Unable to create cache folder. Is the wp-content writable? <br />No cache data will be available.', 'wp-hide-security-enhancer') ."</p></div>";
|
384 |
}
|
385 |
|
386 |
if(isset($_GET['reset_settings']))
|
387 |
{
|
388 |
-
echo "<div class='updated'><p>". __('All Settings where restored to default', 'wp-hide-security-enhancer') ."</p></div>";
|
389 |
|
390 |
$this->functions->settings_changed_check_for_cache_plugins();
|
391 |
}
|
@@ -394,13 +407,6 @@
|
|
394 |
if(isset($_GET['settings_updated']))
|
395 |
{
|
396 |
|
397 |
-
//check for write permision
|
398 |
-
if($this->server_htaccess_config === TRUE && !$this->functions->is_writable_htaccess_config_file())
|
399 |
-
echo "<div class='error'><p>". __('Unable to write custom rules to your .htaccess. Is this file writable? <br />No mod is being applied.', 'wp-hide-security-enhancer') ."</p></div>";
|
400 |
-
|
401 |
-
if($this->server_web_config === TRUE && !$this->functions->is_writable_web_config_file())
|
402 |
-
echo "<div class='error'><p>". __('Unable to write custom rules to your web.config. Is this file writable? <br />No mod is being applied.', 'wp-hide-security-enhancer') ."</p></div>";
|
403 |
-
|
404 |
//check for interface save processing errors
|
405 |
$process_interface_save_errors = get_transient( 'wph-process_interface_save_errors' );
|
406 |
|
@@ -618,13 +624,9 @@
|
|
618 |
|
619 |
function wp_redirect($location, $status)
|
620 |
{
|
621 |
-
if($this->uninstall === TRUE)
|
622 |
return $location;
|
623 |
-
|
624 |
-
//ignore if permalinks are available
|
625 |
-
if($this->permalinks_not_applied === TRUE)
|
626 |
-
return $location;
|
627 |
-
|
628 |
//do not replace 404 pages
|
629 |
global $wp_the_query;
|
630 |
|
@@ -811,6 +813,11 @@
|
|
811 |
|
812 |
if($this->uninstall === TRUE)
|
813 |
return $rules;
|
|
|
|
|
|
|
|
|
|
|
814 |
|
815 |
$processing_data = $this->get_components_rules();
|
816 |
|
@@ -828,11 +835,6 @@
|
|
828 |
$_page_refresh = TRUE;
|
829 |
}
|
830 |
|
831 |
-
$write_check_string = time() . '_' . mt_rand(100, 99999);
|
832 |
-
$this->settings['write_check_string'] = $write_check_string;
|
833 |
-
$this->functions->update_settings($this->settings);
|
834 |
-
|
835 |
-
|
836 |
$rules .= "#WriteCheckString:" . $write_check_string . "\n";
|
837 |
$rules .= "RewriteRule .* - [E=HTTP_MOD_REWRITE:On]";
|
838 |
|
@@ -842,7 +844,7 @@
|
|
842 |
{
|
843 |
$rules .= "\n" . $_htaccess_data_line;
|
844 |
}
|
845 |
-
}
|
846 |
|
847 |
$rules = apply_filters('wp-hide/mod_rewrite_rules', $rules);
|
848 |
|
@@ -1137,9 +1139,13 @@
|
|
1137 |
|
1138 |
$home_url = defined('WP_HOME') ? WP_HOME : get_option('home');
|
1139 |
$home_url = untrailingslashit($home_url);
|
|
|
|
|
1140 |
|
1141 |
$siteurl = defined('WP_HOME') ? WP_SITEURL : get_option('siteurl');
|
1142 |
$siteurl = untrailingslashit($siteurl);
|
|
|
|
|
1143 |
|
1144 |
$wp_directory = str_replace($home_url, "" , $siteurl);
|
1145 |
$wp_directory = trim(trim($wp_directory), '/');
|
@@ -1235,10 +1241,10 @@
|
|
1235 |
return;
|
1236 |
|
1237 |
//recheck if the permalinks where sucesfully saved
|
1238 |
-
$this->
|
1239 |
|
1240 |
//ignore if permalinks are available
|
1241 |
-
if($this->
|
1242 |
return;
|
1243 |
|
1244 |
$new_location = trailingslashit( site_url() ) . "wp-admin/options-permalink.php";
|
@@ -1306,6 +1312,16 @@
|
|
1306 |
|
1307 |
}
|
1308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
|
1310 |
|
1311 |
function log_save($text)
|
20 |
|
21 |
var $disable_filters = FALSE;
|
22 |
var $disable_ob_start_callback = FALSE;
|
23 |
+
var $custom_permalinks_applied = FALSE;
|
24 |
|
25 |
var $doing_interface_save = FALSE;
|
26 |
var $doing_reset_settings = FALSE;
|
82 |
$this->disable_filters = TRUE;
|
83 |
}
|
84 |
|
85 |
+
//check if WPEngine
|
86 |
+
if ( getenv('IS_WPE') == "1" || getenv('IS_WPE_SNAPSHOT') == "1" )
|
87 |
+
$this->disable_filters = TRUE;
|
88 |
+
|
89 |
//check for permalink issues
|
90 |
+
$this->custom_permalinks_applied = $this->functions->rewrite_rules_applied();
|
91 |
|
92 |
$this->get_default_variables();
|
93 |
|
151 |
//admin notices
|
152 |
add_action( 'admin_notices', array(&$this, 'admin_notices'));
|
153 |
add_action( 'network_admin_notices', array(&$this, 'admin_notices'));
|
154 |
+
|
155 |
+
//restart the buffering if already outputed. This is usefull for plugin / theme update iframe
|
156 |
+
add_action('admin_print_footer_scripts', array($this, 'admin_print_footer_scripts'), -1);
|
157 |
|
158 |
$this->is_initialised = TRUE;
|
159 |
}
|
228 |
usort($module_settings, array($this->functions, 'array_sort_by_processing_order'));
|
229 |
|
230 |
|
231 |
+
if($this->disable_filters || $this->custom_permalinks_applied === FALSE || !is_array($module_settings) || count($module_settings) < 1)
|
232 |
continue;
|
233 |
|
234 |
foreach($module_settings as $module_setting)
|
240 |
$_class_instance = isset($module_setting['class_instance']) ? $module_setting['class_instance'] : $module;
|
241 |
|
242 |
//ignore callbacks if permalink is turned OFF
|
243 |
+
if($this->functions->is_permalink_enabled())
|
244 |
{
|
245 |
$_callback = isset($module_setting['callback']) ? $module_setting['callback'] : '';
|
246 |
if(empty($_callback))
|
313 |
|
314 |
// Localize the script with new data
|
315 |
$translation_array = array(
|
316 |
+
'reset_confirmation' => __('Are you sure to reset all settings? All options will be removed. Manual remove of rewrite lines is required if no access from php', 'wp-hide-security-enhancer')
|
317 |
);
|
318 |
wp_localize_script( 'wph', 'wph_vars', $translation_array );
|
319 |
|
347 |
{
|
348 |
global $wp_rewrite;
|
349 |
|
350 |
+
|
351 |
+
if ( getenv('IS_WPE') == "1" || getenv('IS_WPE_SNAPSHOT') == "1" )
|
352 |
+
{
|
353 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __("Your server run on WPEngine which works on Nginx rewrite rules, please check with WP Hide PRO version at.", 'wp-hide-security-enhancer') .' <a target="_blank" href="https://www.wp-hide.com/wp-hide-pro-now-available/">WP-Hide PRO</a><</p></div>';
|
354 |
+
}
|
355 |
+
|
356 |
if ( is_multisite() )
|
357 |
{
|
358 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __("This plugin version can't handle MultiSite environment, please check with WP Hide PRO version at", 'wp-hide-security-enhancer') . ' <a target="_blank" href="https://www.wp-hide.com/wp-hide-pro-now-available/">WP-Hide PRO</a></p></div>';
|
359 |
}
|
360 |
|
361 |
if(! $this->functions->is_muloader())
|
362 |
{
|
363 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __('Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please make sure this location is writable so the plugin create the required file.', 'wp-hide-security-enhancer') ."</p></div>";
|
364 |
}
|
365 |
|
366 |
//check for permalinks enabled
|
367 |
if (!$this->functions->is_permalink_enabled())
|
368 |
{
|
369 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __('Permalink is required to be turned ON for WP Hide & Security Enhancer to work', 'wp-hide-security-enhancer') ."</p></div>";
|
370 |
}
|
371 |
|
372 |
if($this->server_htaccess_config === FALSE && $this->server_web_config === FALSE)
|
382 |
if(empty($_write_check_string) || $_write_check_string != $this->settings['write_check_string'])
|
383 |
{
|
384 |
if($this->server_htaccess_config === TRUE)
|
385 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __('Unable to write custom rules to your .htaccess. Is this file writable? <br />No changes are being applied.', 'wp-hide-security-enhancer') ."</p></div>";
|
386 |
|
387 |
if($this->server_web_config === TRUE)
|
388 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __('Unable to write custom rules to your web.config. Is this file writable? <br />No changes are being applied.', 'wp-hide-security-enhancer') ."</p></div>";
|
389 |
}
|
390 |
}
|
391 |
|
393 |
//check if the cache dir is available
|
394 |
if(! is_writable( WPH_CACHE_PATH ))
|
395 |
{
|
396 |
+
echo "<div class='error'><p><b>WP Hide</b> ". __('Unable to create cache folder. Is the wp-content writable? <br />No cache data will be available.', 'wp-hide-security-enhancer') ."</p></div>";
|
397 |
}
|
398 |
|
399 |
if(isset($_GET['reset_settings']))
|
400 |
{
|
401 |
+
echo "<div class='updated'><p><b>WP Hide</b> ". __('All Settings where restored to default', 'wp-hide-security-enhancer') ."</p></div>";
|
402 |
|
403 |
$this->functions->settings_changed_check_for_cache_plugins();
|
404 |
}
|
407 |
if(isset($_GET['settings_updated']))
|
408 |
{
|
409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
//check for interface save processing errors
|
411 |
$process_interface_save_errors = get_transient( 'wph-process_interface_save_errors' );
|
412 |
|
624 |
|
625 |
function wp_redirect($location, $status)
|
626 |
{
|
627 |
+
if( $this->uninstall === TRUE || $this->disable_filters || $this->custom_permalinks_applied === FALSE )
|
628 |
return $location;
|
629 |
+
|
|
|
|
|
|
|
|
|
630 |
//do not replace 404 pages
|
631 |
global $wp_the_query;
|
632 |
|
813 |
|
814 |
if($this->uninstall === TRUE)
|
815 |
return $rules;
|
816 |
+
|
817 |
+
$write_check_string = $this->settings['write_check_string'];
|
818 |
+
|
819 |
+
if ( empty ( $write_check_string ) )
|
820 |
+
return $rules;
|
821 |
|
822 |
$processing_data = $this->get_components_rules();
|
823 |
|
835 |
$_page_refresh = TRUE;
|
836 |
}
|
837 |
|
|
|
|
|
|
|
|
|
|
|
838 |
$rules .= "#WriteCheckString:" . $write_check_string . "\n";
|
839 |
$rules .= "RewriteRule .* - [E=HTTP_MOD_REWRITE:On]";
|
840 |
|
844 |
{
|
845 |
$rules .= "\n" . $_htaccess_data_line;
|
846 |
}
|
847 |
+
}
|
848 |
|
849 |
$rules = apply_filters('wp-hide/mod_rewrite_rules', $rules);
|
850 |
|
1139 |
|
1140 |
$home_url = defined('WP_HOME') ? WP_HOME : get_option('home');
|
1141 |
$home_url = untrailingslashit($home_url);
|
1142 |
+
//stripp the protocols to ensure there's no difference from home_ur to site_url
|
1143 |
+
$home_url = str_replace(array('http://', 'https://', 'http://www.', 'https://www.'), '', $home_url);
|
1144 |
|
1145 |
$siteurl = defined('WP_HOME') ? WP_SITEURL : get_option('siteurl');
|
1146 |
$siteurl = untrailingslashit($siteurl);
|
1147 |
+
//stripp the protocols to ensure there's no difference from home_ur to site_url
|
1148 |
+
$siteurl = str_replace(array('http://', 'https://', 'http://www.', 'https://www.'), '', $siteurl);
|
1149 |
|
1150 |
$wp_directory = str_replace($home_url, "" , $siteurl);
|
1151 |
$wp_directory = trim(trim($wp_directory), '/');
|
1241 |
return;
|
1242 |
|
1243 |
//recheck if the permalinks where sucesfully saved
|
1244 |
+
$this->custom_permalinks_applied = $this->functions->rewrite_rules_applied();
|
1245 |
|
1246 |
//ignore if permalinks are available
|
1247 |
+
if($this->custom_permalinks_applied === FALSE)
|
1248 |
return;
|
1249 |
|
1250 |
$new_location = trailingslashit( site_url() ) . "wp-admin/options-permalink.php";
|
1312 |
|
1313 |
}
|
1314 |
|
1315 |
+
|
1316 |
+
/**
|
1317 |
+
* Restart the bufering if turned off already
|
1318 |
+
*
|
1319 |
+
*/
|
1320 |
+
function admin_print_footer_scripts()
|
1321 |
+
{
|
1322 |
+
if ( ob_get_level() < 1 )
|
1323 |
+
ob_start( array($this, 'ob_start_callback'));
|
1324 |
+
}
|
1325 |
|
1326 |
|
1327 |
function log_save($text)
|
js/wph.js
CHANGED
@@ -2,14 +2,6 @@
|
|
2 |
|
3 |
var WPH = {
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
var agree = confirm(wph_vars.reset_confirmation);
|
8 |
-
if (!agree)
|
9 |
-
return false;
|
10 |
-
|
11 |
-
jQuery('#reset_settings_form').submit();
|
12 |
-
|
13 |
-
}
|
14 |
|
15 |
}
|
2 |
|
3 |
var WPH = {
|
4 |
|
5 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
}
|
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: Post Types Order\n"
|
4 |
-
"POT-Creation-Date: 2018-
|
5 |
-
"PO-Revision-Date: 2018-
|
6 |
"Last-Translator: NspCode <contact@nsp-code.com>\n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
@@ -20,133 +20,145 @@ msgid ""
|
|
20 |
"Login Url change. "
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: include/
|
|
|
|
|
|
|
|
|
24 |
msgid "Value"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: include/functions.class.php:
|
28 |
msgid "set for"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: include/functions.class.php:
|
32 |
msgid "already in use for another option."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: include/functions.class.php:
|
36 |
msgid ""
|
37 |
"W3 Total Cache Plugin is active, make sure you clear the cache for new "
|
38 |
"changes to apply"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: include/functions.class.php:
|
42 |
msgid ""
|
43 |
"WP Super Cache Plugin is active, make sure you clear the cache for new "
|
44 |
"changes to apply"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: include/functions.class.php:
|
48 |
msgid ""
|
49 |
"WP Fastest Cache Plugin is active, make sure you clear the cache for new "
|
50 |
"changes to apply"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: include/functions.class.php:
|
54 |
#, php-format
|
55 |
msgid "The %1$s plugin header is deprecated. Use %2$s instead."
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: include/functions.class.php:
|
59 |
#, php-format
|
60 |
msgid "By %s."
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: include/functions.class.php:
|
64 |
msgid ""
|
65 |
"Help us to improve this plugin by sending any improvement suggestions and "
|
66 |
"reporting any issues at "
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: include/functions.class.php:
|
70 |
msgid "Did you know there is a"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: include/functions.class.php:
|
74 |
msgid "version of this plug-in?"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: include/functions.class.php:
|
78 |
msgid ""
|
79 |
"Did you find this plugin useful? Please support our work by spread the word "
|
80 |
"about the code, or write an article about the plugin in your blog with a "
|
81 |
"link to development site"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: include/wph.class.php:
|
85 |
-
msgid "
|
|
|
|
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: include/wph.class.php:
|
89 |
msgid ""
|
90 |
-
"
|
91 |
-
"PRO version at"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: include/wph.class.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
msgid ""
|
96 |
"Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please "
|
97 |
"make sure this location is writable so the plugin create the required file."
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: include/wph.class.php:
|
101 |
msgid ""
|
102 |
"Permalink is required to be turned ON for WP Hide & Security Enhancer to work"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: include/wph.class.php:
|
106 |
msgid ""
|
107 |
"<b>WP Hide</b> This plugin version can't handle this server type, please "
|
108 |
"check with PRO version at"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: include/wph.class.php:
|
112 |
msgid ""
|
113 |
"Unable to write custom rules to your .htaccess. Is this file writable? <br /"
|
114 |
-
">No
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: include/wph.class.php:
|
118 |
msgid ""
|
119 |
"Unable to write custom rules to your web.config. Is this file writable? <br /"
|
120 |
-
">No
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: include/wph.class.php:
|
124 |
msgid ""
|
125 |
"Unable to create cache folder. Is the wp-content writable? <br />No cache "
|
126 |
"data will be available."
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: include/wph.class.php:
|
130 |
msgid "All Settings where restored to default"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: include/wph.class.php:
|
134 |
msgid "Settings saved"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: include/wph.class.php:
|
138 |
msgid "Cache cleared"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: include/wph.class.php:
|
142 |
msgid "Unable to create environment static file. Is "
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: include/wph.class.php:
|
146 |
msgid "writable"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: include/wph.class.php:
|
150 |
msgid "will not work correctly, so where turned off."
|
151 |
msgstr ""
|
152 |
|
@@ -174,6 +186,10 @@ msgstr ""
|
|
174 |
msgid "WP Hide & Security Enhancer"
|
175 |
msgstr ""
|
176 |
|
|
|
|
|
|
|
|
|
177 |
#: modules/components/admin-admin_url.php:18
|
178 |
msgid "Create a new admin url instead default /wp-admin and /login."
|
179 |
msgstr ""
|
@@ -190,6 +206,13 @@ msgstr ""
|
|
190 |
msgid "More details can be found at"
|
191 |
msgstr ""
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
#: modules/components/admin-admin_url.php:20
|
194 |
msgid "Write down your new admin url, or if lost, will not be able to log-in."
|
195 |
msgstr ""
|
@@ -209,6 +232,10 @@ msgid ""
|
|
209 |
"which reset links to default: "
|
210 |
msgstr ""
|
211 |
|
|
|
|
|
|
|
|
|
212 |
#: modules/components/admin-admin_url.php:34
|
213 |
msgid "Block default admin url and files from being accesible."
|
214 |
msgstr ""
|
@@ -236,10 +263,10 @@ msgstr ""
|
|
236 |
#: modules/components/general-meta.php:172
|
237 |
#: modules/components/general-meta.php:188
|
238 |
#: modules/components/general-oembed.php:22
|
|
|
239 |
#: modules/components/general-scripts.php:21
|
240 |
#: modules/components/general-styles.php:21
|
241 |
#: modules/components/general-styles.php:37
|
242 |
-
#: modules/components/general-tobots-txt.php:21
|
243 |
#: modules/components/general-wpemoji.php:21
|
244 |
#: modules/components/general-wpemoji.php:37
|
245 |
#: modules/components/rewrite-comments.php:34
|
@@ -293,10 +320,10 @@ msgstr ""
|
|
293 |
#: modules/components/general-meta.php:173
|
294 |
#: modules/components/general-meta.php:189
|
295 |
#: modules/components/general-oembed.php:23
|
|
|
296 |
#: modules/components/general-scripts.php:22
|
297 |
#: modules/components/general-styles.php:22
|
298 |
#: modules/components/general-styles.php:38
|
299 |
-
#: modules/components/general-tobots-txt.php:22
|
300 |
#: modules/components/general-wpemoji.php:22
|
301 |
#: modules/components/general-wpemoji.php:38
|
302 |
#: modules/components/rewrite-comments.php:35
|
@@ -326,28 +353,32 @@ msgstr ""
|
|
326 |
msgid "No"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: modules/components/admin-admin_url.php:
|
330 |
msgid "Hello"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: modules/components/admin-admin_url.php:
|
334 |
msgid ""
|
335 |
"This is an automated message to inform that your login url has been changed "
|
336 |
"at"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: modules/components/admin-admin_url.php:
|
340 |
msgid "The new login url is"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: modules/components/admin-admin_url.php:
|
344 |
msgid "Additionality you can use this to recover the old login / admin links "
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: modules/components/admin-admin_url.php:
|
348 |
msgid "Please keep this url safe for recover, if forgot"
|
349 |
msgstr ""
|
350 |
|
|
|
|
|
|
|
|
|
351 |
#: modules/components/admin-new_wp_login_php.php:18
|
352 |
msgid ""
|
353 |
"Map a new wp-login.php instead default. This also need to include <i>.php</"
|
@@ -361,16 +392,32 @@ msgid ""
|
|
361 |
"these features. More details at "
|
362 |
msgstr ""
|
363 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
364 |
#: modules/components/admin-new_wp_login_php.php:33
|
365 |
msgid "Block default wp-login.php file from being accesible."
|
366 |
msgstr ""
|
367 |
|
|
|
|
|
|
|
|
|
368 |
#: modules/components/general-feed.php:17
|
369 |
msgid ""
|
370 |
"Remove feed|rdf|rss|rss2|atom links within head. Also block such content "
|
371 |
"functionality."
|
372 |
msgstr ""
|
373 |
|
|
|
|
|
|
|
|
|
374 |
#: modules/components/general-headers.php:17
|
375 |
msgid "Remove X-Powered-By Header if being set."
|
376 |
msgstr ""
|
@@ -381,16 +428,28 @@ msgstr ""
|
|
381 |
msgid "More details at "
|
382 |
msgstr ""
|
383 |
|
|
|
|
|
|
|
|
|
384 |
#: modules/components/general-headers.php:34
|
385 |
msgid "Remove X-Pingback Header if being set."
|
386 |
msgstr ""
|
387 |
|
|
|
|
|
|
|
|
|
388 |
#: modules/components/general-html.php:22
|
389 |
msgid ""
|
390 |
"Remove all HTML Comments which usualy specify Plugins Name and Version. Any "
|
391 |
"Internet Explorer conditional tags are preserved."
|
392 |
msgstr ""
|
393 |
|
|
|
|
|
|
|
|
|
394 |
#: modules/components/general-html.php:38
|
395 |
msgid ""
|
396 |
"Minify HTML, Inline Styles, Inline JavaScripts. Minify JavaScript might "
|
@@ -413,6 +472,10 @@ msgstr ""
|
|
413 |
msgid "All"
|
414 |
msgstr ""
|
415 |
|
|
|
|
|
|
|
|
|
416 |
#: modules/components/general-html.php:57
|
417 |
msgid "Remove general classes from body tag."
|
418 |
msgstr ""
|
@@ -427,48 +490,88 @@ msgid ""
|
|
427 |
"should be turned off."
|
428 |
msgstr ""
|
429 |
|
|
|
|
|
|
|
|
|
430 |
#: modules/components/general-html.php:72
|
431 |
msgid "Remove ID attribute from all menu items."
|
432 |
msgstr ""
|
433 |
|
|
|
|
|
|
|
|
|
434 |
#: modules/components/general-html.php:87
|
435 |
msgid ""
|
436 |
"Remove class attribute from all menu items. Any classes which include a "
|
437 |
"\"current\" prefix or contain \"has-children\" will be preserved."
|
438 |
msgstr ""
|
439 |
|
|
|
|
|
|
|
|
|
440 |
#: modules/components/general-html.php:103
|
441 |
msgid "Remove general classes from post."
|
442 |
msgstr ""
|
443 |
|
|
|
|
|
|
|
|
|
444 |
#: modules/components/general-html.php:118
|
445 |
msgid "Remove general classes from media tags."
|
446 |
msgstr ""
|
447 |
|
|
|
|
|
|
|
|
|
448 |
#: modules/components/general-meta.php:18
|
449 |
msgid ""
|
450 |
"Remove the autogenerated meta generator tag within head (WordPress Version)."
|
451 |
msgstr ""
|
452 |
|
|
|
|
|
|
|
|
|
453 |
#: modules/components/general-meta.php:34
|
454 |
msgid ""
|
455 |
"Remove other meta generated tags within head (eg Theme Name, Theme Version)."
|
456 |
msgstr ""
|
457 |
|
|
|
|
|
|
|
|
|
458 |
#: modules/components/general-meta.php:50
|
459 |
msgid "Remove shortlink tags within head."
|
460 |
msgstr ""
|
461 |
|
|
|
|
|
|
|
|
|
462 |
#: modules/components/general-meta.php:66
|
463 |
msgid "Remove DNS Prefetch meta generated tag."
|
464 |
msgstr ""
|
465 |
|
|
|
|
|
|
|
|
|
466 |
#: modules/components/general-meta.php:82
|
467 |
msgid ""
|
468 |
"Remove Resource Hints meta generated tags within head (eg dns-prefetch, "
|
469 |
"preconnect)."
|
470 |
msgstr ""
|
471 |
|
|
|
|
|
|
|
|
|
472 |
#: modules/components/general-meta.php:98
|
473 |
msgid "Remove the wlwmanifest tag within head."
|
474 |
msgstr ""
|
@@ -483,26 +586,61 @@ msgstr ""
|
|
483 |
msgid "By default a REST API link tag is being append to HTML."
|
484 |
msgstr ""
|
485 |
|
|
|
|
|
|
|
|
|
486 |
#: modules/components/general-meta.php:134
|
487 |
msgid "Remove the rsd_link tag within head."
|
488 |
msgstr ""
|
489 |
|
|
|
|
|
|
|
|
|
490 |
#: modules/components/general-meta.php:152
|
491 |
msgid "Remove the adjacent_posts_rel tag within head."
|
492 |
msgstr ""
|
493 |
|
|
|
|
|
|
|
|
|
494 |
#: modules/components/general-meta.php:168
|
495 |
msgid "Remove profile link meta tag within head."
|
496 |
msgstr ""
|
497 |
|
|
|
|
|
|
|
|
|
498 |
#: modules/components/general-meta.php:184
|
499 |
msgid "Remove canonical link meta tag within head."
|
500 |
msgstr ""
|
501 |
|
|
|
|
|
|
|
|
|
502 |
#: modules/components/general-oembed.php:17
|
503 |
msgid "Remove Oembed tags from header."
|
504 |
msgstr ""
|
505 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
#: modules/components/general-scripts.php:17
|
507 |
msgid "Remove version number from enqueued script files."
|
508 |
msgstr ""
|
@@ -511,20 +649,26 @@ msgstr ""
|
|
511 |
msgid "Remove version number from enqueued style files."
|
512 |
msgstr ""
|
513 |
|
|
|
|
|
|
|
|
|
514 |
#: modules/components/general-styles.php:33
|
515 |
msgid "Remove ID attribute from all link tags which include a stylesheet."
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: modules/components/general-
|
519 |
-
msgid ""
|
520 |
-
"Disable any admin url which is being automatically generated by WordPress "
|
521 |
-
"when called robots.txt."
|
522 |
msgstr ""
|
523 |
|
524 |
#: modules/components/general-wpemoji.php:17
|
525 |
msgid "Disable the Emoji icon library from being loaded."
|
526 |
msgstr ""
|
527 |
|
|
|
|
|
|
|
|
|
528 |
#: modules/components/general-wpemoji.php:33
|
529 |
msgid "Disable the TinyMCE Emoji icons library from being loaded into TinyMC."
|
530 |
msgstr ""
|
@@ -607,6 +751,17 @@ msgstr ""
|
|
607 |
msgid "e.g. my_includes"
|
608 |
msgstr ""
|
609 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
#: modules/components/rewrite-new_plugin_path.php:17
|
611 |
msgid "New Plugins Path"
|
612 |
msgstr ""
|
@@ -825,18 +980,30 @@ msgid ""
|
|
825 |
"can be set to Yes."
|
826 |
msgstr ""
|
827 |
|
|
|
|
|
|
|
|
|
828 |
#: modules/components/rewrite-root-files.php:84
|
829 |
msgid ""
|
830 |
"Block default wp-signup.php file. If <b>anyone can register</b> on your "
|
831 |
"site, you shold keep this off."
|
832 |
msgstr ""
|
833 |
|
|
|
|
|
|
|
|
|
834 |
#: modules/components/rewrite-root-files.php:101
|
835 |
msgid ""
|
836 |
"Block default wp-register.php file. This file is now deprecated however "
|
837 |
"still exists within code and redirected to /register page."
|
838 |
msgstr ""
|
839 |
|
|
|
|
|
|
|
|
|
840 |
#: modules/components/rewrite-root-files.php:118
|
841 |
msgid ""
|
842 |
"Block other wp-*.php files. E.g. wp-blog-header.php, wp-config.php, wp-cron."
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Post Types Order\n"
|
4 |
+
"POT-Creation-Date: 2018-07-05 18:59+0200\n"
|
5 |
+
"PO-Revision-Date: 2018-07-05 18:59+0200\n"
|
6 |
"Last-Translator: NspCode <contact@nsp-code.com>\n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
20 |
"Login Url change. "
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: include/admin-interface.class.php:117
|
24 |
+
msgid "Save"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: include/functions.class.php:228
|
28 |
msgid "Value"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: include/functions.class.php:228
|
32 |
msgid "set for"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: include/functions.class.php:228
|
36 |
msgid "already in use for another option."
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: include/functions.class.php:333
|
40 |
msgid ""
|
41 |
"W3 Total Cache Plugin is active, make sure you clear the cache for new "
|
42 |
"changes to apply"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: include/functions.class.php:337
|
46 |
msgid ""
|
47 |
"WP Super Cache Plugin is active, make sure you clear the cache for new "
|
48 |
"changes to apply"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: include/functions.class.php:342
|
52 |
msgid ""
|
53 |
"WP Fastest Cache Plugin is active, make sure you clear the cache for new "
|
54 |
"changes to apply"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: include/functions.class.php:2088
|
58 |
#, php-format
|
59 |
msgid "The %1$s plugin header is deprecated. Use %2$s instead."
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: include/functions.class.php:2173
|
63 |
#, php-format
|
64 |
msgid "By %s."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: include/functions.class.php:2450
|
68 |
msgid ""
|
69 |
"Help us to improve this plugin by sending any improvement suggestions and "
|
70 |
"reporting any issues at "
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: include/functions.class.php:2451
|
74 |
msgid "Did you know there is a"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: include/functions.class.php:2451
|
78 |
msgid "version of this plug-in?"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: include/functions.class.php:2452
|
82 |
msgid ""
|
83 |
"Did you find this plugin useful? Please support our work by spread the word "
|
84 |
"about the code, or write an article about the plugin in your blog with a "
|
85 |
"link to development site"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: include/wph.class.php:316
|
89 |
+
msgid ""
|
90 |
+
"Are you sure to reset all settings? All options will be removed. Manual "
|
91 |
+
"remove of rewrite lines is required if no access from php"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: include/wph.class.php:353
|
95 |
msgid ""
|
96 |
+
"Your server run on WPEngine which works on Nginx rewrite rules, please check "
|
97 |
+
"with WP Hide PRO version at."
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: include/wph.class.php:358
|
101 |
+
msgid ""
|
102 |
+
"This plugin version can't handle MultiSite environment, please check with WP "
|
103 |
+
"Hide PRO version at"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: include/wph.class.php:363
|
107 |
msgid ""
|
108 |
"Unable to launch WP Hide through mu-plugins/wp-hide-loader.php<br /> Please "
|
109 |
"make sure this location is writable so the plugin create the required file."
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: include/wph.class.php:369
|
113 |
msgid ""
|
114 |
"Permalink is required to be turned ON for WP Hide & Security Enhancer to work"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: include/wph.class.php:374
|
118 |
msgid ""
|
119 |
"<b>WP Hide</b> This plugin version can't handle this server type, please "
|
120 |
"check with PRO version at"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: include/wph.class.php:385
|
124 |
msgid ""
|
125 |
"Unable to write custom rules to your .htaccess. Is this file writable? <br /"
|
126 |
+
">No changes are being applied."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: include/wph.class.php:388
|
130 |
msgid ""
|
131 |
"Unable to write custom rules to your web.config. Is this file writable? <br /"
|
132 |
+
">No changes are being applied."
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: include/wph.class.php:396
|
136 |
msgid ""
|
137 |
"Unable to create cache folder. Is the wp-content writable? <br />No cache "
|
138 |
"data will be available."
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: include/wph.class.php:401
|
142 |
msgid "All Settings where restored to default"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: include/wph.class.php:430
|
146 |
msgid "Settings saved"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: include/wph.class.php:472
|
150 |
msgid "Cache cleared"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: include/wph.class.php:787
|
154 |
msgid "Unable to create environment static file. Is "
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: include/wph.class.php:787
|
158 |
msgid "writable"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: include/wph.class.php:787
|
162 |
msgid "will not work correctly, so where turned off."
|
163 |
msgstr ""
|
164 |
|
186 |
msgid "WP Hide & Security Enhancer"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: modules/components/admin-admin_url.php:16
|
190 |
+
msgid "New Admin Url"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
#: modules/components/admin-admin_url.php:18
|
194 |
msgid "Create a new admin url instead default /wp-admin and /login."
|
195 |
msgstr ""
|
206 |
msgid "More details can be found at"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: modules/components/admin-admin_url.php:20
|
210 |
+
#: modules/components/admin-admin_url.php:21
|
211 |
+
#: modules/components/admin-new_wp_login_php.php:20
|
212 |
+
#: modules/components/admin-new_wp_login_php.php:21
|
213 |
+
msgid "warning"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
#: modules/components/admin-admin_url.php:20
|
217 |
msgid "Write down your new admin url, or if lost, will not be able to log-in."
|
218 |
msgstr ""
|
232 |
"which reset links to default: "
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: modules/components/admin-admin_url.php:32
|
236 |
+
msgid "Block default Admin Url"
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
#: modules/components/admin-admin_url.php:34
|
240 |
msgid "Block default admin url and files from being accesible."
|
241 |
msgstr ""
|
263 |
#: modules/components/general-meta.php:172
|
264 |
#: modules/components/general-meta.php:188
|
265 |
#: modules/components/general-oembed.php:22
|
266 |
+
#: modules/components/general-robots-txt.php:21
|
267 |
#: modules/components/general-scripts.php:21
|
268 |
#: modules/components/general-styles.php:21
|
269 |
#: modules/components/general-styles.php:37
|
|
|
270 |
#: modules/components/general-wpemoji.php:21
|
271 |
#: modules/components/general-wpemoji.php:37
|
272 |
#: modules/components/rewrite-comments.php:34
|
320 |
#: modules/components/general-meta.php:173
|
321 |
#: modules/components/general-meta.php:189
|
322 |
#: modules/components/general-oembed.php:23
|
323 |
+
#: modules/components/general-robots-txt.php:22
|
324 |
#: modules/components/general-scripts.php:22
|
325 |
#: modules/components/general-styles.php:22
|
326 |
#: modules/components/general-styles.php:38
|
|
|
327 |
#: modules/components/general-wpemoji.php:22
|
328 |
#: modules/components/general-wpemoji.php:38
|
329 |
#: modules/components/rewrite-comments.php:35
|
353 |
msgid "No"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: modules/components/admin-admin_url.php:188
|
357 |
msgid "Hello"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: modules/components/admin-admin_url.php:189
|
361 |
msgid ""
|
362 |
"This is an automated message to inform that your login url has been changed "
|
363 |
"at"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: modules/components/admin-admin_url.php:190
|
367 |
msgid "The new login url is"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: modules/components/admin-admin_url.php:191
|
371 |
msgid "Additionality you can use this to recover the old login / admin links "
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: modules/components/admin-admin_url.php:192
|
375 |
msgid "Please keep this url safe for recover, if forgot"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: modules/components/admin-new_wp_login_php.php:16
|
379 |
+
msgid "New wp-login.php"
|
380 |
+
msgstr ""
|
381 |
+
|
382 |
#: modules/components/admin-new_wp_login_php.php:18
|
383 |
msgid ""
|
384 |
"Map a new wp-login.php instead default. This also need to include <i>.php</"
|
392 |
"these features. More details at "
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: modules/components/admin-new_wp_login_php.php:20
|
396 |
+
msgid "Login Conflicts"
|
397 |
+
msgstr ""
|
398 |
+
|
399 |
+
#: modules/components/admin-new_wp_login_php.php:32
|
400 |
+
msgid "Block default wp-login.php"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
#: modules/components/admin-new_wp_login_php.php:33
|
404 |
msgid "Block default wp-login.php file from being accesible."
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: modules/components/general-feed.php:16
|
408 |
+
msgid "Remove feed|rdf|rss|rss2|atom links"
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
#: modules/components/general-feed.php:17
|
412 |
msgid ""
|
413 |
"Remove feed|rdf|rss|rss2|atom links within head. Also block such content "
|
414 |
"functionality."
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: modules/components/general-headers.php:16
|
418 |
+
msgid "Remove X-Powered-By Header"
|
419 |
+
msgstr ""
|
420 |
+
|
421 |
#: modules/components/general-headers.php:17
|
422 |
msgid "Remove X-Powered-By Header if being set."
|
423 |
msgstr ""
|
428 |
msgid "More details at "
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: modules/components/general-headers.php:33
|
432 |
+
msgid "Remove X-Pingback Header"
|
433 |
+
msgstr ""
|
434 |
+
|
435 |
#: modules/components/general-headers.php:34
|
436 |
msgid "Remove X-Pingback Header if being set."
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: modules/components/general-html.php:21
|
440 |
+
msgid "Remove Comments"
|
441 |
+
msgstr ""
|
442 |
+
|
443 |
#: modules/components/general-html.php:22
|
444 |
msgid ""
|
445 |
"Remove all HTML Comments which usualy specify Plugins Name and Version. Any "
|
446 |
"Internet Explorer conditional tags are preserved."
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: modules/components/general-html.php:37
|
450 |
+
msgid "Minify"
|
451 |
+
msgstr ""
|
452 |
+
|
453 |
#: modules/components/general-html.php:38
|
454 |
msgid ""
|
455 |
"Minify HTML, Inline Styles, Inline JavaScripts. Minify JavaScript might "
|
472 |
msgid "All"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: modules/components/general-html.php:56
|
476 |
+
msgid "Remove general classes from body tag"
|
477 |
+
msgstr ""
|
478 |
+
|
479 |
#: modules/components/general-html.php:57
|
480 |
msgid "Remove general classes from body tag."
|
481 |
msgstr ""
|
490 |
"should be turned off."
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: modules/components/general-html.php:71
|
494 |
+
msgid "Remove ID from Menu items"
|
495 |
+
msgstr ""
|
496 |
+
|
497 |
#: modules/components/general-html.php:72
|
498 |
msgid "Remove ID attribute from all menu items."
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: modules/components/general-html.php:86
|
502 |
+
msgid "Remove class from Menu items"
|
503 |
+
msgstr ""
|
504 |
+
|
505 |
#: modules/components/general-html.php:87
|
506 |
msgid ""
|
507 |
"Remove class attribute from all menu items. Any classes which include a "
|
508 |
"\"current\" prefix or contain \"has-children\" will be preserved."
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: modules/components/general-html.php:102
|
512 |
+
msgid "Remove general classes from post"
|
513 |
+
msgstr ""
|
514 |
+
|
515 |
#: modules/components/general-html.php:103
|
516 |
msgid "Remove general classes from post."
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: modules/components/general-html.php:117
|
520 |
+
msgid "Remove general classes from images"
|
521 |
+
msgstr ""
|
522 |
+
|
523 |
#: modules/components/general-html.php:118
|
524 |
msgid "Remove general classes from media tags."
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: modules/components/general-meta.php:17
|
528 |
+
msgid "Remove WordPress Generator Meta"
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
#: modules/components/general-meta.php:18
|
532 |
msgid ""
|
533 |
"Remove the autogenerated meta generator tag within head (WordPress Version)."
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: modules/components/general-meta.php:33
|
537 |
+
msgid "Remove Other Generator Meta"
|
538 |
+
msgstr ""
|
539 |
+
|
540 |
#: modules/components/general-meta.php:34
|
541 |
msgid ""
|
542 |
"Remove other meta generated tags within head (eg Theme Name, Theme Version)."
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: modules/components/general-meta.php:49
|
546 |
+
msgid "Remove Shortlink Meta"
|
547 |
+
msgstr ""
|
548 |
+
|
549 |
#: modules/components/general-meta.php:50
|
550 |
msgid "Remove shortlink tags within head."
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: modules/components/general-meta.php:65
|
554 |
+
msgid "Remove DNS Prefetch"
|
555 |
+
msgstr ""
|
556 |
+
|
557 |
#: modules/components/general-meta.php:66
|
558 |
msgid "Remove DNS Prefetch meta generated tag."
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: modules/components/general-meta.php:81
|
562 |
+
msgid "Remove Resource Hints"
|
563 |
+
msgstr ""
|
564 |
+
|
565 |
#: modules/components/general-meta.php:82
|
566 |
msgid ""
|
567 |
"Remove Resource Hints meta generated tags within head (eg dns-prefetch, "
|
568 |
"preconnect)."
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: modules/components/general-meta.php:97
|
572 |
+
msgid "Remove wlwmanifest Meta"
|
573 |
+
msgstr ""
|
574 |
+
|
575 |
#: modules/components/general-meta.php:98
|
576 |
msgid "Remove the wlwmanifest tag within head."
|
577 |
msgstr ""
|
586 |
msgid "By default a REST API link tag is being append to HTML."
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: modules/components/general-meta.php:133
|
590 |
+
msgid "Remove rsd_link Meta"
|
591 |
+
msgstr ""
|
592 |
+
|
593 |
#: modules/components/general-meta.php:134
|
594 |
msgid "Remove the rsd_link tag within head."
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: modules/components/general-meta.php:151
|
598 |
+
msgid "Remove adjacent_posts_rel Meta"
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
#: modules/components/general-meta.php:152
|
602 |
msgid "Remove the adjacent_posts_rel tag within head."
|
603 |
msgstr ""
|
604 |
|
605 |
+
#: modules/components/general-meta.php:167
|
606 |
+
msgid "Remove profile link"
|
607 |
+
msgstr ""
|
608 |
+
|
609 |
#: modules/components/general-meta.php:168
|
610 |
msgid "Remove profile link meta tag within head."
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: modules/components/general-meta.php:183
|
614 |
+
msgid "Remove canonical link"
|
615 |
+
msgstr ""
|
616 |
+
|
617 |
#: modules/components/general-meta.php:184
|
618 |
msgid "Remove canonical link meta tag within head."
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: modules/components/general-oembed.php:16
|
622 |
+
msgid "Remove Oembed"
|
623 |
+
msgstr ""
|
624 |
+
|
625 |
#: modules/components/general-oembed.php:17
|
626 |
msgid "Remove Oembed tags from header."
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: modules/components/general-robots-txt.php:16
|
630 |
+
msgid "Disable admin url within Robots.txt"
|
631 |
+
msgstr ""
|
632 |
+
|
633 |
+
#: modules/components/general-robots-txt.php:17
|
634 |
+
msgid ""
|
635 |
+
"Disable any admin url which is being automatically generated by WordPress "
|
636 |
+
"when called robots.txt."
|
637 |
+
msgstr ""
|
638 |
+
|
639 |
+
#: modules/components/general-scripts.php:16
|
640 |
+
#: modules/components/general-styles.php:16
|
641 |
+
msgid "Remove Version"
|
642 |
+
msgstr ""
|
643 |
+
|
644 |
#: modules/components/general-scripts.php:17
|
645 |
msgid "Remove version number from enqueued script files."
|
646 |
msgstr ""
|
649 |
msgid "Remove version number from enqueued style files."
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: modules/components/general-styles.php:32
|
653 |
+
msgid "Remove ID from link tags"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
#: modules/components/general-styles.php:33
|
657 |
msgid "Remove ID attribute from all link tags which include a stylesheet."
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: modules/components/general-wpemoji.php:16
|
661 |
+
msgid "Disable Emoji"
|
|
|
|
|
662 |
msgstr ""
|
663 |
|
664 |
#: modules/components/general-wpemoji.php:17
|
665 |
msgid "Disable the Emoji icon library from being loaded."
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: modules/components/general-wpemoji.php:32
|
669 |
+
msgid "Disable TinyMCE Emoji"
|
670 |
+
msgstr ""
|
671 |
+
|
672 |
#: modules/components/general-wpemoji.php:33
|
673 |
msgid "Disable the TinyMCE Emoji icons library from being loaded into TinyMC."
|
674 |
msgstr ""
|
751 |
msgid "e.g. my_includes"
|
752 |
msgstr ""
|
753 |
|
754 |
+
#: modules/components/rewrite-new_include_path.php:29
|
755 |
+
msgid "Block wp-includes URL"
|
756 |
+
msgstr ""
|
757 |
+
|
758 |
+
#: modules/components/rewrite-new_include_path.php:30
|
759 |
+
msgid ""
|
760 |
+
"Block wp-includes files from being accesible through default urls. <br /"
|
761 |
+
">Apply only if <b>New Includes Path</b> is not empty. It block only for non "
|
762 |
+
"loged-in users."
|
763 |
+
msgstr ""
|
764 |
+
|
765 |
#: modules/components/rewrite-new_plugin_path.php:17
|
766 |
msgid "New Plugins Path"
|
767 |
msgstr ""
|
980 |
"can be set to Yes."
|
981 |
msgstr ""
|
982 |
|
983 |
+
#: modules/components/rewrite-root-files.php:83
|
984 |
+
msgid "Block wp-signup.php"
|
985 |
+
msgstr ""
|
986 |
+
|
987 |
#: modules/components/rewrite-root-files.php:84
|
988 |
msgid ""
|
989 |
"Block default wp-signup.php file. If <b>anyone can register</b> on your "
|
990 |
"site, you shold keep this off."
|
991 |
msgstr ""
|
992 |
|
993 |
+
#: modules/components/rewrite-root-files.php:100
|
994 |
+
msgid "Block wp-register.php"
|
995 |
+
msgstr ""
|
996 |
+
|
997 |
#: modules/components/rewrite-root-files.php:101
|
998 |
msgid ""
|
999 |
"Block default wp-register.php file. This file is now deprecated however "
|
1000 |
"still exists within code and redirected to /register page."
|
1001 |
msgstr ""
|
1002 |
|
1003 |
+
#: modules/components/rewrite-root-files.php:117
|
1004 |
+
msgid "Block other wp-*.php files"
|
1005 |
+
msgstr ""
|
1006 |
+
|
1007 |
#: modules/components/rewrite-root-files.php:118
|
1008 |
msgid ""
|
1009 |
"Block other wp-*.php files. E.g. wp-blog-header.php, wp-config.php, wp-cron."
|
modules/components/admin-admin_url.php
CHANGED
@@ -13,12 +13,12 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'admin_url',
|
16 |
-
'label' => 'New Admin Url',
|
17 |
'description' => array(
|
18 |
__('Create a new admin url instead default /wp-admin and /login.', 'wp-hide-security-enhancer') . '<br />'
|
19 |
. __('More details can be found at', 'wp-hide-security-enhancer') .' <a href="http://www.wp-hide.com/documentation/admin-change-wp-admin/" target="_blank">Link</a>',
|
20 |
-
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('Write down your new admin url, or if lost, will not be able to log-in.', 'wp-hide-security-enhancer') . " " . __('An e-mail will be sent to', 'wp-hide-security-enhancer') . " " . get_option('admin_email') . " " . __('with the new Login URL', 'wp-hide-security-enhancer') . '</span></div>',
|
21 |
-
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('If unable to access the login / admin section anymore, use the Recovery Link which reset links to default: ', 'wp-hide-security-enhancer') . '<br /><b class="pointer">' . site_url() . '?wph-recovery='. $this->wph->functions->get_recovery_code() .'</b></div>'
|
22 |
),
|
23 |
'input_type' => 'text',
|
24 |
|
@@ -29,7 +29,7 @@
|
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'block_default_admin_url',
|
32 |
-
'label' => 'Block default Admin Url',
|
33 |
'description' => array(
|
34 |
__('Block default admin url and files from being accesible.', 'wp-hide-security-enhancer')
|
35 |
),
|
@@ -68,7 +68,7 @@
|
|
68 |
WPH_conflict_handle_wp_simple_firewall::custom_login_check();
|
69 |
|
70 |
$default_url = $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' );
|
71 |
-
$new_url = $this->wph->functions->get_url_path( trailingslashit(
|
72 |
|
73 |
|
74 |
//add replacement
|
@@ -94,18 +94,18 @@
|
|
94 |
return $processing_response;
|
95 |
|
96 |
$wp_admin = untrailingslashit ( $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' ) );
|
97 |
-
$new_admin = untrailingslashit ( $this->wph->functions->get_url_path( trailingslashit(
|
98 |
|
99 |
-
$rewrite_base = $
|
100 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $wp_admin, TRUE, FALSE );
|
101 |
-
$rewrite_to_new_admin = $
|
102 |
|
103 |
$text = '';
|
104 |
|
105 |
if($this->wph->server_htaccess_config === TRUE)
|
106 |
{
|
107 |
-
$text = "\nRewriteCond %{REQUEST_URI}
|
108 |
-
$text .= "\nRewriteRule ^(.*)$
|
109 |
$text .= "\nRewriteRule ^" . $rewrite_base . '(.*) '. $rewrite_to .'$1 [L,QSA]';
|
110 |
}
|
111 |
|
@@ -116,7 +116,7 @@
|
|
116 |
<conditions>
|
117 |
<add input="{REQUEST_URI}" matchType="Pattern" pattern="'. $rewrite_to_new_admin .'$" />
|
118 |
</conditions>
|
119 |
-
<action type="Redirect" redirectType="Permanent" url="
|
120 |
</rule>
|
121 |
<rule name="wph-admin_url2" stopProcessing="true">
|
122 |
<match url="^'. $rewrite_base .'(.*)" />
|
@@ -164,7 +164,11 @@
|
|
164 |
$secure = FALSE;
|
165 |
}
|
166 |
|
167 |
-
|
|
|
|
|
|
|
|
|
168 |
|
169 |
$manager = WP_Session_Tokens::get_instance( $user_id );
|
170 |
$token = $manager->create( $expiration );
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'admin_url',
|
16 |
+
'label' => __('New Admin Url', 'wp-hide-security-enhancer'),
|
17 |
'description' => array(
|
18 |
__('Create a new admin url instead default /wp-admin and /login.', 'wp-hide-security-enhancer') . '<br />'
|
19 |
. __('More details can be found at', 'wp-hide-security-enhancer') .' <a href="http://www.wp-hide.com/documentation/admin-change-wp-admin/" target="_blank">Link</a>',
|
20 |
+
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">'. __('warning', 'wp-hide-security-enhancer') .'</div> <span class="important">' . __('Write down your new admin url, or if lost, will not be able to log-in.', 'wp-hide-security-enhancer') . " " . __('An e-mail will be sent to', 'wp-hide-security-enhancer') . " " . get_option('admin_email') . " " . __('with the new Login URL', 'wp-hide-security-enhancer') . '</span></div>',
|
21 |
+
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">'. __('warning', 'wp-hide-security-enhancer') .'</div> <span class="important">' . __('If unable to access the login / admin section anymore, use the Recovery Link which reset links to default: ', 'wp-hide-security-enhancer') . '<br /><b class="pointer">' . site_url() . '?wph-recovery='. $this->wph->functions->get_recovery_code() .'</b></div>'
|
22 |
),
|
23 |
'input_type' => 'text',
|
24 |
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'block_default_admin_url',
|
32 |
+
'label' => __('Block default Admin Url', 'wp-hide-security-enhancer'),
|
33 |
'description' => array(
|
34 |
__('Block default admin url and files from being accesible.', 'wp-hide-security-enhancer')
|
35 |
),
|
68 |
WPH_conflict_handle_wp_simple_firewall::custom_login_check();
|
69 |
|
70 |
$default_url = $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' );
|
71 |
+
$new_url = $this->wph->functions->get_url_path( trailingslashit( home_url() ) . $saved_field_data );
|
72 |
|
73 |
|
74 |
//add replacement
|
94 |
return $processing_response;
|
95 |
|
96 |
$wp_admin = untrailingslashit ( $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' ) );
|
97 |
+
$new_admin = untrailingslashit ( $this->wph->functions->get_url_path( trailingslashit( home_url() ) . $saved_field_data ) );
|
98 |
|
99 |
+
$rewrite_base = $saved_field_data;
|
100 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $wp_admin, TRUE, FALSE );
|
101 |
+
$rewrite_to_new_admin = $new_admin;
|
102 |
|
103 |
$text = '';
|
104 |
|
105 |
if($this->wph->server_htaccess_config === TRUE)
|
106 |
{
|
107 |
+
$text = "\nRewriteCond %{REQUEST_URI} ". $rewrite_to_new_admin ."$";
|
108 |
+
$text .= "\nRewriteRule ^(.*)$ ". $rewrite_to_new_admin ."/ [R=301,L]";
|
109 |
$text .= "\nRewriteRule ^" . $rewrite_base . '(.*) '. $rewrite_to .'$1 [L,QSA]';
|
110 |
}
|
111 |
|
116 |
<conditions>
|
117 |
<add input="{REQUEST_URI}" matchType="Pattern" pattern="'. $rewrite_to_new_admin .'$" />
|
118 |
</conditions>
|
119 |
+
<action type="Redirect" redirectType="Permanent" url="'. $rewrite_to_new_admin . '{R:1}/" />
|
120 |
</rule>
|
121 |
<rule name="wph-admin_url2" stopProcessing="true">
|
122 |
<match url="^'. $rewrite_base .'(.*)" />
|
164 |
$secure = FALSE;
|
165 |
}
|
166 |
|
167 |
+
$sitecookiepath = empty($this->wph->default_variables['wordpress_directory']) ? SITECOOKIEPATH : rtrim(SITECOOKIEPATH, trailingslashit($this->wph->default_variables['wordpress_directory']));
|
168 |
+
if (empty ($sitecookiepath))
|
169 |
+
$sitecookiepath = '/';
|
170 |
+
|
171 |
+
setcookie($auth_cookie_name, $auth_cookie, $expire, $sitecookiepath . $new_admin_url, COOKIE_DOMAIN, $secure, true);
|
172 |
|
173 |
$manager = WP_Session_Tokens::get_instance( $user_id );
|
174 |
$token = $manager->create( $expiration );
|
modules/components/admin-new_wp_login_php.php
CHANGED
@@ -13,12 +13,12 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'new_wp_login_php',
|
16 |
-
'label' => 'New wp-login.php',
|
17 |
'description' => array(
|
18 |
__('Map a new wp-login.php instead default. This also need to include <i>.php</i> extension.', 'wp-hide-security-enhancer') . '<br />'
|
19 |
. __('More details can be found at', 'wp-hide-security-enhancer') .' <a href="http://www.wp-hide.com/documentation/admin-change-wp-login-php/" target="_blank">Link</a>',
|
20 |
-
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('Make sure your log-in url is not already modified by another plugin or theme. In such case, you should disable other code and take advantage of these features. More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/login-conflicts/">Login Conflicts</a></span></div>',
|
21 |
-
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">warning</div> <span class="important">' . __('If unable to access the login / admin section anymore, use the Recovery Link which reset links to default: ', 'wp-hide-security-enhancer') . '<br /><b class="pointer">' . site_url() . '?wph-recovery='. $this->wph->functions->get_recovery_code() .'</b></div>'
|
22 |
),
|
23 |
'input_type' => 'text',
|
24 |
|
@@ -29,7 +29,7 @@
|
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'block_default_wp_login_php',
|
32 |
-
'label' => 'Block default wp-login.php',
|
33 |
'description' => __('Block default wp-login.php file from being accesible.', 'wp-hide-security-enhancer'),
|
34 |
|
35 |
'input_type' => 'radio',
|
@@ -65,7 +65,7 @@
|
|
65 |
|
66 |
//add replacement
|
67 |
$url = trailingslashit( site_url() ) . 'wp-login.php';
|
68 |
-
$this->wph->functions->add_replacement( $url, trailingslashit(
|
69 |
|
70 |
//add relative too
|
71 |
$this->wph->functions->add_replacement( '/wp-login.php', '/' . $saved_field_data );
|
@@ -77,7 +77,7 @@
|
|
77 |
{
|
78 |
$new_wp_login_php = $this->wph->functions->get_module_item_setting('new_wp_login_php');
|
79 |
|
80 |
-
$login_url =
|
81 |
|
82 |
return $login_url;
|
83 |
}
|
@@ -91,7 +91,7 @@
|
|
91 |
|
92 |
$new_wp_login_php = untrailingslashit ( $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-login.php' ) );
|
93 |
|
94 |
-
$rewrite_base = $
|
95 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $new_wp_login_php, TRUE, FALSE );
|
96 |
|
97 |
if($this->wph->server_htaccess_config === TRUE)
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'new_wp_login_php',
|
16 |
+
'label' => __('New wp-login.php', 'wp-hide-security-enhancer'),
|
17 |
'description' => array(
|
18 |
__('Map a new wp-login.php instead default. This also need to include <i>.php</i> extension.', 'wp-hide-security-enhancer') . '<br />'
|
19 |
. __('More details can be found at', 'wp-hide-security-enhancer') .' <a href="http://www.wp-hide.com/documentation/admin-change-wp-login-php/" target="_blank">Link</a>',
|
20 |
+
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">'. __('warning', 'wp-hide-security-enhancer') .'</div> <span class="important">' . __('Make sure your log-in url is not already modified by another plugin or theme. In such case, you should disable other code and take advantage of these features. More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/login-conflicts/">'. __('Login Conflicts', 'wp-hide-security-enhancer') .'</a></span></div>',
|
21 |
+
'<div class="notice-error"><div class="dashicons dashicons-warning important" alt="f534">'. __('warning', 'wp-hide-security-enhancer') .'</div> <span class="important">' . __('If unable to access the login / admin section anymore, use the Recovery Link which reset links to default: ', 'wp-hide-security-enhancer') . '<br /><b class="pointer">' . site_url() . '?wph-recovery='. $this->wph->functions->get_recovery_code() .'</b></div>'
|
22 |
),
|
23 |
'input_type' => 'text',
|
24 |
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'block_default_wp_login_php',
|
32 |
+
'label' => __('Block default wp-login.php', 'wp-hide-security-enhancer'),
|
33 |
'description' => __('Block default wp-login.php file from being accesible.', 'wp-hide-security-enhancer'),
|
34 |
|
35 |
'input_type' => 'radio',
|
65 |
|
66 |
//add replacement
|
67 |
$url = trailingslashit( site_url() ) . 'wp-login.php';
|
68 |
+
$this->wph->functions->add_replacement( $url, trailingslashit( home_url() ) . $saved_field_data );
|
69 |
|
70 |
//add relative too
|
71 |
$this->wph->functions->add_replacement( '/wp-login.php', '/' . $saved_field_data );
|
77 |
{
|
78 |
$new_wp_login_php = $this->wph->functions->get_module_item_setting('new_wp_login_php');
|
79 |
|
80 |
+
$login_url = home_url($new_wp_login_php, 'login');
|
81 |
|
82 |
return $login_url;
|
83 |
}
|
91 |
|
92 |
$new_wp_login_php = untrailingslashit ( $this->wph->functions->get_url_path( trailingslashit( site_url() ) . 'wp-login.php' ) );
|
93 |
|
94 |
+
$rewrite_base = $saved_field_data;
|
95 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $new_wp_login_php, TRUE, FALSE );
|
96 |
|
97 |
if($this->wph->server_htaccess_config === TRUE)
|
modules/components/general-feed.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'remove_feed_links',
|
16 |
-
'label' => 'Remove feed|rdf|rss|rss2|atom links',
|
17 |
'description' => __('Remove feed|rdf|rss|rss2|atom links within head. Also block such content functionality.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'remove_feed_links',
|
16 |
+
'label' => __('Remove feed|rdf|rss|rss2|atom links', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Remove feed|rdf|rss|rss2|atom links within head. Also block such content functionality.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
modules/components/general-headers.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'remove_x_powered_by',
|
16 |
-
'label' => 'Remove X-Powered-By Header',
|
17 |
'description' => __('Remove X-Powered-By Header if being set.', 'wp-hide-security-enhancer') . ' ' .
|
18 |
__('More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/documentation/request-headers/">Request Headers</a>',
|
19 |
|
@@ -30,7 +30,7 @@
|
|
30 |
|
31 |
$this->module_settings[] = array(
|
32 |
'id' => 'remove_x_pingback',
|
33 |
-
'label' => 'Remove X-Pingback Header',
|
34 |
'description' => __('Remove X-Pingback Header if being set.', 'wp-hide-security-enhancer') . ' ' .
|
35 |
__('More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/documentation/request-headers/">Request Headers</a>',
|
36 |
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'remove_x_powered_by',
|
16 |
+
'label' => __('Remove X-Powered-By Header', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Remove X-Powered-By Header if being set.', 'wp-hide-security-enhancer') . ' ' .
|
18 |
__('More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/documentation/request-headers/">Request Headers</a>',
|
19 |
|
30 |
|
31 |
$this->module_settings[] = array(
|
32 |
'id' => 'remove_x_pingback',
|
33 |
+
'label' => __('Remove X-Pingback Header', 'wp-hide-security-enhancer'),
|
34 |
'description' => __('Remove X-Pingback Header if being set.', 'wp-hide-security-enhancer') . ' ' .
|
35 |
__('More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/documentation/request-headers/">Request Headers</a>',
|
36 |
|
modules/components/general-html.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
{
|
19 |
$this->module_settings[] = array(
|
20 |
'id' => 'remove_html_comments',
|
21 |
-
'label' => 'Remove Comments',
|
22 |
'description' => __('Remove all HTML Comments which usualy specify Plugins Name and Version. Any Internet Explorer conditional tags are preserved.', 'wp-hide-security-enhancer'),
|
23 |
|
24 |
'input_type' => 'radio',
|
@@ -34,7 +34,7 @@
|
|
34 |
|
35 |
$this->module_settings[] = array(
|
36 |
'id' => 'remove_html_new_lines',
|
37 |
-
'label' => 'Minify',
|
38 |
'description' => __('Minify HTML, Inline Styles, Inline JavaScripts. Minify JavaScript might produce errors for specific plugins.', 'wp-hide-security-enhancer'),
|
39 |
|
40 |
'input_type' => 'radio',
|
@@ -53,7 +53,7 @@
|
|
53 |
|
54 |
$this->module_settings[] = array(
|
55 |
'id' => 'clean_body_classes',
|
56 |
-
'label' => 'Remove general classes from body tag',
|
57 |
'description' => __('Remove general classes from body tag.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
58 |
'input_type' => 'radio',
|
59 |
'options' => array(
|
@@ -68,7 +68,7 @@
|
|
68 |
|
69 |
$this->module_settings[] = array(
|
70 |
'id' => 'clean_menu_items_id',
|
71 |
-
'label' => 'Remove ID from Menu items',
|
72 |
'description' => __('Remove ID attribute from all menu items.', 'wp-hide-security-enhancer'). '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
73 |
'input_type' => 'radio',
|
74 |
'options' => array(
|
@@ -83,7 +83,7 @@
|
|
83 |
|
84 |
$this->module_settings[] = array(
|
85 |
'id' => 'clean_menu_items_classes',
|
86 |
-
'label' => 'Remove class from Menu items',
|
87 |
'description' => __('Remove class attribute from all menu items. Any classes which include a "current" prefix or contain "has-children" will be preserved.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
88 |
|
89 |
'input_type' => 'radio',
|
@@ -99,7 +99,7 @@
|
|
99 |
|
100 |
$this->module_settings[] = array(
|
101 |
'id' => 'clean_post_classes',
|
102 |
-
'label' => 'Remove general classes from post',
|
103 |
'description' => __('Remove general classes from post.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
104 |
'input_type' => 'radio',
|
105 |
'options' => array(
|
@@ -114,7 +114,7 @@
|
|
114 |
|
115 |
$this->module_settings[] = array(
|
116 |
'id' => 'clean_image_classes',
|
117 |
-
'label' => 'Remove general classes from images',
|
118 |
'description' => __('Remove general classes from media tags.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
119 |
'input_type' => 'radio',
|
120 |
'options' => array(
|
18 |
{
|
19 |
$this->module_settings[] = array(
|
20 |
'id' => 'remove_html_comments',
|
21 |
+
'label' => __('Remove Comments', 'wp-hide-security-enhancer'),
|
22 |
'description' => __('Remove all HTML Comments which usualy specify Plugins Name and Version. Any Internet Explorer conditional tags are preserved.', 'wp-hide-security-enhancer'),
|
23 |
|
24 |
'input_type' => 'radio',
|
34 |
|
35 |
$this->module_settings[] = array(
|
36 |
'id' => 'remove_html_new_lines',
|
37 |
+
'label' => __('Minify', 'wp-hide-security-enhancer'),
|
38 |
'description' => __('Minify HTML, Inline Styles, Inline JavaScripts. Minify JavaScript might produce errors for specific plugins.', 'wp-hide-security-enhancer'),
|
39 |
|
40 |
'input_type' => 'radio',
|
53 |
|
54 |
$this->module_settings[] = array(
|
55 |
'id' => 'clean_body_classes',
|
56 |
+
'label' => __('Remove general classes from body tag', 'wp-hide-security-enhancer'),
|
57 |
'description' => __('Remove general classes from body tag.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
58 |
'input_type' => 'radio',
|
59 |
'options' => array(
|
68 |
|
69 |
$this->module_settings[] = array(
|
70 |
'id' => 'clean_menu_items_id',
|
71 |
+
'label' => __('Remove ID from Menu items', 'wp-hide-security-enhancer'),
|
72 |
'description' => __('Remove ID attribute from all menu items.', 'wp-hide-security-enhancer'). '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
73 |
'input_type' => 'radio',
|
74 |
'options' => array(
|
83 |
|
84 |
$this->module_settings[] = array(
|
85 |
'id' => 'clean_menu_items_classes',
|
86 |
+
'label' => __('Remove class from Menu items', 'wp-hide-security-enhancer'),
|
87 |
'description' => __('Remove class attribute from all menu items. Any classes which include a "current" prefix or contain "has-children" will be preserved.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
88 |
|
89 |
'input_type' => 'radio',
|
99 |
|
100 |
$this->module_settings[] = array(
|
101 |
'id' => 'clean_post_classes',
|
102 |
+
'label' => __('Remove general classes from post', 'wp-hide-security-enhancer'),
|
103 |
'description' => __('Remove general classes from post.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
104 |
'input_type' => 'radio',
|
105 |
'options' => array(
|
114 |
|
115 |
$this->module_settings[] = array(
|
116 |
'id' => 'clean_image_classes',
|
117 |
+
'label' => __('Remove general classes from images', 'wp-hide-security-enhancer'),
|
118 |
'description' => __('Remove general classes from media tags.', 'wp-hide-security-enhancer') . '<br /><span class="info"> '. __('This can produce layout issues with certain themes, if something break this should be turned off.', 'wp-hide-security-enhancer') . '</span>',
|
119 |
'input_type' => 'radio',
|
120 |
'options' => array(
|
modules/components/general-meta.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
{
|
15 |
$this->module_settings[] = array(
|
16 |
'id' => 'remove_generator_meta',
|
17 |
-
'label' => 'Remove WordPress Generator Meta',
|
18 |
'description' => __('Remove the autogenerated meta generator tag within head (WordPress Version).', 'wp-hide-security-enhancer'),
|
19 |
|
20 |
'input_type' => 'radio',
|
@@ -30,7 +30,7 @@
|
|
30 |
|
31 |
$this->module_settings[] = array(
|
32 |
'id' => 'remove_other_generator_meta',
|
33 |
-
'label' => 'Remove Other Generator Meta',
|
34 |
'description' => __('Remove other meta generated tags within head (eg Theme Name, Theme Version).', 'wp-hide-security-enhancer'),
|
35 |
|
36 |
'input_type' => 'radio',
|
@@ -46,7 +46,7 @@
|
|
46 |
|
47 |
$this->module_settings[] = array(
|
48 |
'id' => 'remove_shortlink_meta',
|
49 |
-
'label' => 'Remove Shortlink Meta',
|
50 |
'description' => __('Remove shortlink tags within head.', 'wp-hide-security-enhancer'),
|
51 |
|
52 |
'input_type' => 'radio',
|
@@ -62,7 +62,7 @@
|
|
62 |
|
63 |
$this->module_settings[] = array(
|
64 |
'id' => 'remove_dns_prefetch',
|
65 |
-
'label' => 'Remove DNS Prefetch',
|
66 |
'description' => __('Remove DNS Prefetch meta generated tag.', 'wp-hide-security-enhancer'),
|
67 |
|
68 |
'input_type' => 'radio',
|
@@ -78,7 +78,7 @@
|
|
78 |
|
79 |
$this->module_settings[] = array(
|
80 |
'id' => 'remove_resource_hints',
|
81 |
-
'label' => 'Remove Resource Hints',
|
82 |
'description' => __('Remove Resource Hints meta generated tags within head (eg dns-prefetch, preconnect).', 'wp-hide-security-enhancer'),
|
83 |
|
84 |
'input_type' => 'radio',
|
@@ -94,7 +94,7 @@
|
|
94 |
|
95 |
$this->module_settings[] = array(
|
96 |
'id' => 'remove_wlwmanifest',
|
97 |
-
'label' => 'Remove wlwmanifest Meta',
|
98 |
'description' => __('Remove the wlwmanifest tag within head.', 'wp-hide-security-enhancer'),
|
99 |
|
100 |
'input_type' => 'radio',
|
@@ -130,7 +130,7 @@
|
|
130 |
|
131 |
$this->module_settings[] = array(
|
132 |
'id' => 'remove_rsd_link',
|
133 |
-
'label' => 'Remove rsd_link Meta',
|
134 |
'description' => __('Remove the rsd_link tag within head.', 'wp-hide-security-enhancer'),
|
135 |
|
136 |
'input_type' => 'radio',
|
@@ -148,7 +148,7 @@
|
|
148 |
|
149 |
$this->module_settings[] = array(
|
150 |
'id' => 'remove_adjacent_posts_rel',
|
151 |
-
'label' => 'Remove adjacent_posts_rel Meta',
|
152 |
'description' => __('Remove the adjacent_posts_rel tag within head.', 'wp-hide-security-enhancer'),
|
153 |
|
154 |
'input_type' => 'radio',
|
@@ -164,7 +164,7 @@
|
|
164 |
|
165 |
$this->module_settings[] = array(
|
166 |
'id' => 'remove_profile',
|
167 |
-
'label' => 'Remove profile link',
|
168 |
'description' => __('Remove profile link meta tag within head.', 'wp-hide-security-enhancer'),
|
169 |
|
170 |
'input_type' => 'radio',
|
@@ -180,7 +180,7 @@
|
|
180 |
|
181 |
$this->module_settings[] = array(
|
182 |
'id' => 'remove_canonical',
|
183 |
-
'label' => 'Remove canonical link',
|
184 |
'description' => __('Remove canonical link meta tag within head.', 'wp-hide-security-enhancer'),
|
185 |
|
186 |
'input_type' => 'radio',
|
14 |
{
|
15 |
$this->module_settings[] = array(
|
16 |
'id' => 'remove_generator_meta',
|
17 |
+
'label' => __('Remove WordPress Generator Meta', 'wp-hide-security-enhancer'),
|
18 |
'description' => __('Remove the autogenerated meta generator tag within head (WordPress Version).', 'wp-hide-security-enhancer'),
|
19 |
|
20 |
'input_type' => 'radio',
|
30 |
|
31 |
$this->module_settings[] = array(
|
32 |
'id' => 'remove_other_generator_meta',
|
33 |
+
'label' => __('Remove Other Generator Meta', 'wp-hide-security-enhancer'),
|
34 |
'description' => __('Remove other meta generated tags within head (eg Theme Name, Theme Version).', 'wp-hide-security-enhancer'),
|
35 |
|
36 |
'input_type' => 'radio',
|
46 |
|
47 |
$this->module_settings[] = array(
|
48 |
'id' => 'remove_shortlink_meta',
|
49 |
+
'label' => __('Remove Shortlink Meta', 'wp-hide-security-enhancer'),
|
50 |
'description' => __('Remove shortlink tags within head.', 'wp-hide-security-enhancer'),
|
51 |
|
52 |
'input_type' => 'radio',
|
62 |
|
63 |
$this->module_settings[] = array(
|
64 |
'id' => 'remove_dns_prefetch',
|
65 |
+
'label' => __('Remove DNS Prefetch', 'wp-hide-security-enhancer'),
|
66 |
'description' => __('Remove DNS Prefetch meta generated tag.', 'wp-hide-security-enhancer'),
|
67 |
|
68 |
'input_type' => 'radio',
|
78 |
|
79 |
$this->module_settings[] = array(
|
80 |
'id' => 'remove_resource_hints',
|
81 |
+
'label' => __('Remove Resource Hints', 'wp-hide-security-enhancer'),
|
82 |
'description' => __('Remove Resource Hints meta generated tags within head (eg dns-prefetch, preconnect).', 'wp-hide-security-enhancer'),
|
83 |
|
84 |
'input_type' => 'radio',
|
94 |
|
95 |
$this->module_settings[] = array(
|
96 |
'id' => 'remove_wlwmanifest',
|
97 |
+
'label' => __('Remove wlwmanifest Meta', 'wp-hide-security-enhancer'),
|
98 |
'description' => __('Remove the wlwmanifest tag within head.', 'wp-hide-security-enhancer'),
|
99 |
|
100 |
'input_type' => 'radio',
|
130 |
|
131 |
$this->module_settings[] = array(
|
132 |
'id' => 'remove_rsd_link',
|
133 |
+
'label' => __('Remove rsd_link Meta', 'wp-hide-security-enhancer'),
|
134 |
'description' => __('Remove the rsd_link tag within head.', 'wp-hide-security-enhancer'),
|
135 |
|
136 |
'input_type' => 'radio',
|
148 |
|
149 |
$this->module_settings[] = array(
|
150 |
'id' => 'remove_adjacent_posts_rel',
|
151 |
+
'label' => __('Remove adjacent_posts_rel Meta', 'wp-hide-security-enhancer'),
|
152 |
'description' => __('Remove the adjacent_posts_rel tag within head.', 'wp-hide-security-enhancer'),
|
153 |
|
154 |
'input_type' => 'radio',
|
164 |
|
165 |
$this->module_settings[] = array(
|
166 |
'id' => 'remove_profile',
|
167 |
+
'label' => __('Remove profile link', 'wp-hide-security-enhancer'),
|
168 |
'description' => __('Remove profile link meta tag within head.', 'wp-hide-security-enhancer'),
|
169 |
|
170 |
'input_type' => 'radio',
|
180 |
|
181 |
$this->module_settings[] = array(
|
182 |
'id' => 'remove_canonical',
|
183 |
+
'label' => __('Remove canonical link', 'wp-hide-security-enhancer'),
|
184 |
'description' => __('Remove canonical link meta tag within head.', 'wp-hide-security-enhancer'),
|
185 |
|
186 |
'input_type' => 'radio',
|
modules/components/general-oembed.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'remove_oembed',
|
16 |
-
'label' => 'Remove Oembed',
|
17 |
'description' => __('Remove Oembed tags from header.', 'wp-hide-security-enhancer') . ' ' .
|
18 |
__('More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/request-headers/">Oembed</a>',
|
19 |
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'remove_oembed',
|
16 |
+
'label' => __('Remove Oembed', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Remove Oembed tags from header.', 'wp-hide-security-enhancer') . ' ' .
|
18 |
__('More details at ', 'wp-hide-security-enhancer') . '<a target="_blank" href="http://www.wp-hide.com/request-headers/">Oembed</a>',
|
19 |
|
modules/components/{general-tobots-txt.php → general-robots-txt.php}
RENAMED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'disable_robots_txt',
|
16 |
-
'label' => 'Disable admin url within Robots.txt',
|
17 |
'description' => __('Disable any admin url which is being automatically generated by WordPress when called robots.txt.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'disable_robots_txt',
|
16 |
+
'label' => __('Disable admin url within Robots.txt', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Disable any admin url which is being automatically generated by WordPress when called robots.txt.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
modules/components/general-scripts.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'scripts_remove_version',
|
16 |
-
'label' => 'Remove Version',
|
17 |
'description' => __('Remove version number from enqueued script files.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'scripts_remove_version',
|
16 |
+
'label' => __('Remove Version', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Remove version number from enqueued script files.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
modules/components/general-styles.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'styles_remove_version',
|
16 |
-
'label' => 'Remove Version',
|
17 |
'description' => __('Remove version number from enqueued style files.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
@@ -29,7 +29,7 @@
|
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'styles_remove_id_attribute',
|
32 |
-
'label' => 'Remove ID from link tags',
|
33 |
'description' => __('Remove ID attribute from all link tags which include a stylesheet.', 'wp-hide-security-enhancer'),
|
34 |
|
35 |
'input_type' => 'radio',
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'styles_remove_version',
|
16 |
+
'label' => __('Remove Version', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Remove version number from enqueued style files.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'styles_remove_id_attribute',
|
32 |
+
'label' => __('Remove ID from link tags', 'wp-hide-security-enhancer'),
|
33 |
'description' => __('Remove ID attribute from all link tags which include a stylesheet.', 'wp-hide-security-enhancer'),
|
34 |
|
35 |
'input_type' => 'radio',
|
modules/components/general-wpemoji.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'disable_wpemojia',
|
16 |
-
'label' => 'Disable Emoji',
|
17 |
'description' => __('Disable the Emoji icon library from being loaded.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
@@ -29,7 +29,7 @@
|
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'disable_tinymce_wpemojia',
|
32 |
-
'label' => 'Disable TinyMCE Emoji',
|
33 |
'description' => __('Disable the TinyMCE Emoji icons library from being loaded into TinyMC.', 'wp-hide-security-enhancer'),
|
34 |
|
35 |
'input_type' => 'radio',
|
13 |
{
|
14 |
$this->module_settings[] = array(
|
15 |
'id' => 'disable_wpemojia',
|
16 |
+
'label' => __('Disable Emoji', 'wp-hide-security-enhancer'),
|
17 |
'description' => __('Disable the Emoji icon library from being loaded.', 'wp-hide-security-enhancer'),
|
18 |
|
19 |
'input_type' => 'radio',
|
29 |
|
30 |
$this->module_settings[] = array(
|
31 |
'id' => 'disable_tinymce_wpemojia',
|
32 |
+
'label' => __('Disable TinyMCE Emoji', 'wp-hide-security-enhancer'),
|
33 |
'description' => __('Disable the TinyMCE Emoji icons library from being loaded into TinyMC.', 'wp-hide-security-enhancer'),
|
34 |
|
35 |
'input_type' => 'radio',
|
modules/components/rewrite-new_include_path.php
CHANGED
@@ -26,13 +26,13 @@
|
|
26 |
);
|
27 |
$this->module_settings[] = array(
|
28 |
'id' => 'block_wpinclude_url',
|
29 |
-
'label' => 'Block wp-includes URL',
|
30 |
-
'description' => 'Block wp-includes files from being accesible through default urls. <br />Apply only if <b>New Includes Path</b> is not empty. It block only for non loged-in users.',
|
31 |
|
32 |
'input_type' => 'radio',
|
33 |
'options' => array(
|
34 |
-
'yes' => __('Yes', 'wp-hide'),
|
35 |
-
'no' => __('No', 'wp-hide'),
|
36 |
),
|
37 |
'default_value' => 'no',
|
38 |
|
@@ -52,7 +52,7 @@
|
|
52 |
|
53 |
//add default plugin path replacement
|
54 |
$new_include_path = $this->wph->functions->untrailingslashit_all( $this->wph->functions->get_module_item_setting('new_include_path') );
|
55 |
-
$new_include_path = trailingslashit(
|
56 |
$this->wph->functions->add_replacement( trailingslashit( site_url() ) . 'wp-includes', $new_include_path );
|
57 |
}
|
58 |
|
@@ -72,7 +72,7 @@
|
|
72 |
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
73 |
$path .= trailingslashit( $saved_field_data );
|
74 |
|
75 |
-
$rewrite_base =
|
76 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $include_path );
|
77 |
|
78 |
if($this->wph->server_htaccess_config === TRUE)
|
26 |
);
|
27 |
$this->module_settings[] = array(
|
28 |
'id' => 'block_wpinclude_url',
|
29 |
+
'label' => __('Block wp-includes URL', 'wp-hide-security-enhancer'),
|
30 |
+
'description' => __('Block wp-includes files from being accesible through default urls. <br />Apply only if <b>New Includes Path</b> is not empty. It block only for non loged-in users.', 'wp-hide-security-enhancer'),
|
31 |
|
32 |
'input_type' => 'radio',
|
33 |
'options' => array(
|
34 |
+
'yes' => __('Yes', 'wp-hide-security-enhancer'),
|
35 |
+
'no' => __('No', 'wp-hide-security-enhancer'),
|
36 |
),
|
37 |
'default_value' => 'no',
|
38 |
|
52 |
|
53 |
//add default plugin path replacement
|
54 |
$new_include_path = $this->wph->functions->untrailingslashit_all( $this->wph->functions->get_module_item_setting('new_include_path') );
|
55 |
+
$new_include_path = trailingslashit( home_url() ) . untrailingslashit( $new_include_path );
|
56 |
$this->wph->functions->add_replacement( trailingslashit( site_url() ) . 'wp-includes', $new_include_path );
|
57 |
}
|
58 |
|
72 |
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
73 |
$path .= trailingslashit( $saved_field_data );
|
74 |
|
75 |
+
$rewrite_base = trailingslashit( $saved_field_data );
|
76 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $include_path );
|
77 |
|
78 |
if($this->wph->server_htaccess_config === TRUE)
|
modules/components/rewrite-new_upload_path.php
CHANGED
@@ -82,7 +82,7 @@
|
|
82 |
|
83 |
//add default plugin path replacement
|
84 |
$new_upload_path = $this->wph->functions->untrailingslashit_all( $this->wph->functions->get_module_item_setting('new_upload_path') );
|
85 |
-
$new_url = trailingslashit(
|
86 |
$this->wph->functions->add_replacement( $this->wph->default_variables['upload_url'], $new_url);
|
87 |
|
88 |
}
|
@@ -99,12 +99,7 @@
|
|
99 |
|
100 |
$uploads_path = $this->wph->functions->get_url_path( $wp_upload_dir['baseurl'] );
|
101 |
|
102 |
-
$
|
103 |
-
if(!empty($this->wph->default_variables['wordpress_directory']))
|
104 |
-
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
105 |
-
$path .= trailingslashit( $saved_field_data );
|
106 |
-
|
107 |
-
$rewrite_base = $this->wph->functions->get_rewrite_base( $saved_field_data, FALSE );
|
108 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $uploads_path );
|
109 |
|
110 |
if($this->wph->server_htaccess_config === TRUE)
|
82 |
|
83 |
//add default plugin path replacement
|
84 |
$new_upload_path = $this->wph->functions->untrailingslashit_all( $this->wph->functions->get_module_item_setting('new_upload_path') );
|
85 |
+
$new_url = trailingslashit( home_url() ) . $new_upload_path;
|
86 |
$this->wph->functions->add_replacement( $this->wph->default_variables['upload_url'], $new_url);
|
87 |
|
88 |
}
|
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 );
|
104 |
|
105 |
if($this->wph->server_htaccess_config === TRUE)
|
modules/components/rewrite-new_xml-rpc-path.php
CHANGED
@@ -87,7 +87,7 @@
|
|
87 |
|
88 |
//add default plugin path replacement
|
89 |
$old_url = trailingslashit( site_url() ) . 'xmlrpc.php';
|
90 |
-
$new_url = trailingslashit(
|
91 |
$this->wph->functions->add_replacement( $old_url , $new_url );
|
92 |
}
|
93 |
|
87 |
|
88 |
//add default plugin path replacement
|
89 |
$old_url = trailingslashit( site_url() ) . 'xmlrpc.php';
|
90 |
+
$new_url = trailingslashit( home_url() ) . $saved_field_data;
|
91 |
$this->wph->functions->add_replacement( $old_url , $new_url );
|
92 |
}
|
93 |
|
modules/components/rewrite-root-files.php
CHANGED
@@ -80,7 +80,7 @@
|
|
80 |
|
81 |
$this->module_settings[] = array(
|
82 |
'id' => 'block_default_wp_signup_php',
|
83 |
-
'label' => 'Block wp-signup.php',
|
84 |
'description' => __('Block default wp-signup.php file. If <b>anyone can register</b> on your site, you shold keep this off.', 'wp-hide-security-enhancer'),
|
85 |
|
86 |
'input_type' => 'radio',
|
@@ -97,7 +97,7 @@
|
|
97 |
|
98 |
$this->module_settings[] = array(
|
99 |
'id' => 'block_default_wp_register_php',
|
100 |
-
'label' => 'Block wp-register.php',
|
101 |
'description' => __('Block default wp-register.php file. This file is now deprecated however still exists within code and redirected to /register page.', 'wp-hide-security-enhancer'),
|
102 |
|
103 |
'input_type' => 'radio',
|
@@ -114,7 +114,7 @@
|
|
114 |
|
115 |
$this->module_settings[] = array(
|
116 |
'id' => 'block_other_wp_files',
|
117 |
-
'label' => 'Block other wp-*.php files',
|
118 |
'description' => __('Block other wp-*.php files. E.g. wp-blog-header.php, wp-config.php, wp-cron.php. Those files are used internally, blocking those will not affect any functionality. Other root files (wp-activate.php, wp-login.php, wp-signup.php) are ignored, they can be controlled through own setting.', 'wp-hide-security-enhancer'),
|
119 |
|
120 |
'input_type' => 'radio',
|
80 |
|
81 |
$this->module_settings[] = array(
|
82 |
'id' => 'block_default_wp_signup_php',
|
83 |
+
'label' => __('Block wp-signup.php', 'wp-hide-security-enhancer'),
|
84 |
'description' => __('Block default wp-signup.php file. If <b>anyone can register</b> on your site, you shold keep this off.', 'wp-hide-security-enhancer'),
|
85 |
|
86 |
'input_type' => 'radio',
|
97 |
|
98 |
$this->module_settings[] = array(
|
99 |
'id' => 'block_default_wp_register_php',
|
100 |
+
'label' => __('Block wp-register.php', 'wp-hide-security-enhancer'),
|
101 |
'description' => __('Block default wp-register.php file. This file is now deprecated however still exists within code and redirected to /register page.', 'wp-hide-security-enhancer'),
|
102 |
|
103 |
'input_type' => 'radio',
|
114 |
|
115 |
$this->module_settings[] = array(
|
116 |
'id' => 'block_other_wp_files',
|
117 |
+
'label' => __('Block other wp-*.php files', 'wp-hide-security-enhancer'),
|
118 |
'description' => __('Block other wp-*.php files. E.g. wp-blog-header.php, wp-config.php, wp-cron.php. Those files are used internally, blocking those will not affect any functionality. Other root files (wp-activate.php, wp-login.php, wp-signup.php) are ignored, they can be controlled through own setting.', 'wp-hide-security-enhancer'),
|
119 |
|
120 |
'input_type' => 'radio',
|
modules/components/rewrite-wp_content_path.php
CHANGED
@@ -54,13 +54,13 @@
|
|
54 |
$content_directory = $this->wph->default_variables['content_directory'];
|
55 |
|
56 |
//add default plugin path replacement
|
57 |
-
$new_content_path = trailingslashit(
|
58 |
-
$this->wph->functions->add_replacement( untrailingslashit(
|
59 |
|
60 |
return TRUE;
|
61 |
}
|
62 |
|
63 |
-
function _callback_saved_new_content_path($saved_field_data)
|
64 |
{
|
65 |
$processing_response = array();
|
66 |
|
@@ -71,7 +71,7 @@
|
|
71 |
|
72 |
$content_path = $this->wph->functions->get_url_path( trailingslashit( WP_CONTENT_URL ));
|
73 |
|
74 |
-
$rewrite_base =
|
75 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $content_path );
|
76 |
|
77 |
if($this->wph->server_htaccess_config === TRUE)
|
54 |
$content_directory = $this->wph->default_variables['content_directory'];
|
55 |
|
56 |
//add default plugin path replacement
|
57 |
+
$new_content_path = trailingslashit( home_url() ) . untrailingslashit( $saved_field_data );
|
58 |
+
$this->wph->functions->add_replacement( untrailingslashit( site_url() ) . $content_directory , $new_content_path );
|
59 |
|
60 |
return TRUE;
|
61 |
}
|
62 |
|
63 |
+
function _callback_saved_new_content_path( $saved_field_data )
|
64 |
{
|
65 |
$processing_response = array();
|
66 |
|
71 |
|
72 |
$content_path = $this->wph->functions->get_url_path( trailingslashit( WP_CONTENT_URL ));
|
73 |
|
74 |
+
$rewrite_base = trailingslashit( $saved_field_data );
|
75 |
$rewrite_to = $this->wph->functions->get_rewrite_to_base( $content_path );
|
76 |
|
77 |
if($this->wph->server_htaccess_config === TRUE)
|
modules/module-general.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
include(WPH_PATH . "/modules/components/general-feed.php");
|
16 |
$this->components[] = new WPH_module_general_feed();
|
17 |
|
18 |
-
include(WPH_PATH . "/modules/components/general-
|
19 |
$this->components[] = new WPH_module_general_robots_txt();
|
20 |
|
21 |
include(WPH_PATH . "/modules/components/general-wpemoji.php");
|
15 |
include(WPH_PATH . "/modules/components/general-feed.php");
|
16 |
$this->components[] = new WPH_module_general_feed();
|
17 |
|
18 |
+
include(WPH_PATH . "/modules/components/general-robots-txt.php");
|
19 |
$this->components[] = new WPH_module_general_robots_txt();
|
20 |
|
21 |
include(WPH_PATH . "/modules/components/general-wpemoji.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: 4.9.
|
7 |
-
Stable tag: 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.
|
@@ -267,6 +267,26 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
267 |
|
268 |
== Changelog ==
|
269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
= 1.4.9.1 =
|
271 |
* Updated MU Loader, if there's no plugin active avoid to receive any notice.
|
272 |
* Allow new wp-login.php
|
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.6
|
7 |
+
Stable tag: 1.5.1.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.
|
267 |
|
268 |
== Changelog ==
|
269 |
|
270 |
+
= 1.5.1.2 =
|
271 |
+
* Do not redirect to new admin url unless rewrite_rules_applied()
|
272 |
+
* Generate no rewrite rules if there's no options / reset
|
273 |
+
* Removed any passed through variables when calling the do_action('wph/settings_changed') as the function can take no argument.
|
274 |
+
* Re-generate a new write_check_string on settings change to ensure if no .htacccess / web.config file is writable, it trigger correct error and flag the disable_filters variable.
|
275 |
+
* Use inline JS code confirmation for Reset Settings, in case the separate JavaScript file is not loaded caused by an rewrite issue.
|
276 |
+
* Reset confirmation message update to better inform the admin upon the procedure to follow.
|
277 |
+
* WPEngine environment check, as they do not support Apache rewrite out of the box
|
278 |
+
* Strip off protocol and any www prefix for site_url and home_url to ensure accurate comparing
|
279 |
+
* Fixed redirect url when saving the options and WordPress deployed in subfolder
|
280 |
+
* Fixed redirect url when reset all options and WordPress deployed in subfolder
|
281 |
+
* Improved compatibility for WordPress subfolder install
|
282 |
+
* Fixed some rewrite lines when WordPress installed in a path and subfolder
|
283 |
+
* Replaced the internal variable permalinks_not_applied to more intuitive custom_permalinks_applied
|
284 |
+
* Restart the buffering if flushed out, mainly used for footer when updating plugins and themes
|
285 |
+
* Add textdomain for multiple untranslated texts
|
286 |
+
* Updated PO language file
|
287 |
+
* Fixed textdomain for couple texts
|
288 |
+
* Add text to textdomain
|
289 |
+
|
290 |
= 1.4.9.1 =
|
291 |
* Updated MU Loader, if there's no plugin active avoid to receive any notice.
|
292 |
* Allow new wp-login.php
|
router/environment.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2 |
-
$environment_variable = '{"theme":{"folder_name":"twentysixteen","mapped_name":"
|
1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2 |
+
$environment_variable = '{"theme":{"folder_name":"twentysixteen","mapped_name":""},"allowed_paths":["F:\/htdocs\/wp-hide.dev\/wp-content\/themes"],"cache_path":"F:\/htdocs\/wp-hide.dev\/wp-content\/cache\/wph\/","wordpress_directory":"","site_relative_path":"\/"}' ?>
|
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.
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
@@ -32,13 +32,8 @@ Domain Path: /languages/
|
|
32 |
$wph = new WPH();
|
33 |
$wph->init();
|
34 |
|
35 |
-
/**
|
36 |
-
* Early Turn ON buffering to allow a callback
|
37 |
-
*
|
38 |
-
*/
|
39 |
ob_start(array($wph, 'ob_start_callback'));
|
40 |
|
41 |
-
|
42 |
}
|
43 |
|
44 |
|
@@ -61,10 +56,10 @@ Domain Path: /languages/
|
|
61 |
global $wph;
|
62 |
|
63 |
//check if permalinks where saved
|
64 |
-
$wph->
|
65 |
|
66 |
//reprocess components if the permalinks where applied
|
67 |
-
if($wph->
|
68 |
{
|
69 |
$wph->_modules_components_run();
|
70 |
}
|
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.1.2
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
32 |
$wph = new WPH();
|
33 |
$wph->init();
|
34 |
|
|
|
|
|
|
|
|
|
35 |
ob_start(array($wph, 'ob_start_callback'));
|
36 |
|
|
|
37 |
}
|
38 |
|
39 |
|
56 |
global $wph;
|
57 |
|
58 |
//check if permalinks where saved
|
59 |
+
$wph->custom_permalinks_applied = $wph->functions->rewrite_rules_applied();
|
60 |
|
61 |
//reprocess components if the permalinks where applied
|
62 |
+
if($wph->custom_permalinks_applied === TRUE)
|
63 |
{
|
64 |
$wph->_modules_components_run();
|
65 |
}
|