Version Description
- Certain sections improvments and code redo
- Admin module cleanup
- removed block for wp-include
- Removed router functionality
- Created Change relative urls within load-style block, load the tyles on a separate file to change the links
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.3
- include/wph.class.php +49 -6
- languages/wp-hide.mo +0 -0
- languages/wp-hide.po +27 -25
- modules/module-admin.php +51 -46
- modules/module-rewrite.php +92 -60
- readme.txt +10 -3
- wp-hide.php +2 -2
include/wph.class.php
CHANGED
@@ -47,6 +47,8 @@
|
|
47 |
|
48 |
$this->_load_modules();
|
49 |
|
|
|
|
|
50 |
add_action('plugins_loaded', array($this, 'session_ob_start') , -1);
|
51 |
|
52 |
//process redirects
|
@@ -109,7 +111,7 @@
|
|
109 |
foreach($module_settings as $module_setting)
|
110 |
{
|
111 |
$field_id = $module_setting['id'];
|
112 |
-
$saved_field_value = $this->settings['module_settings'][$module_id . '_' . $field_id];
|
113 |
|
114 |
//ignore callbacks if permalink is turned OFF
|
115 |
if($this->functions->is_permalink_enabled())
|
@@ -225,9 +227,10 @@
|
|
225 |
//callback processing
|
226 |
function ob_start_callback( $buffer )
|
227 |
{
|
228 |
-
|
229 |
$buffer = $this->functions->text_urls_replacement($buffer, $this->urls_replacement);
|
230 |
-
|
|
|
231 |
|
232 |
return $buffer;
|
233 |
|
@@ -247,7 +250,7 @@
|
|
247 |
$wp_query->set_404();
|
248 |
status_header(404);
|
249 |
|
250 |
-
remove_action( 'template_redirect', 'wp_redirect_admin_locations',
|
251 |
|
252 |
}
|
253 |
|
@@ -348,7 +351,7 @@
|
|
348 |
foreach($module_settings as $module_setting)
|
349 |
{
|
350 |
$field_id = $module_setting['id'];
|
351 |
-
$saved_field_value = $this->settings['module_settings'][$module_id . '_' . $field_id];
|
352 |
|
353 |
$_callback = isset($module_setting['callback_saved']) ? $module_setting['callback_saved'] : '';
|
354 |
if(empty($_callback))
|
@@ -425,7 +428,47 @@
|
|
425 |
$this->templates_data['_template_' . $child_template] = 'child';
|
426 |
}
|
427 |
|
428 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
|
430 |
function switch_theme()
|
431 |
{
|
47 |
|
48 |
$this->_load_modules();
|
49 |
|
50 |
+
$this->add_default_replacements();
|
51 |
+
|
52 |
add_action('plugins_loaded', array($this, 'session_ob_start') , -1);
|
53 |
|
54 |
//process redirects
|
111 |
foreach($module_settings as $module_setting)
|
112 |
{
|
113 |
$field_id = $module_setting['id'];
|
114 |
+
$saved_field_value = isset($this->settings['module_settings'][$module_id . '_' . $field_id]) ? $this->settings['module_settings'][$module_id . '_' . $field_id] : '';
|
115 |
|
116 |
//ignore callbacks if permalink is turned OFF
|
117 |
if($this->functions->is_permalink_enabled())
|
227 |
//callback processing
|
228 |
function ob_start_callback( $buffer )
|
229 |
{
|
230 |
+
//replace the urls
|
231 |
$buffer = $this->functions->text_urls_replacement($buffer, $this->urls_replacement);
|
232 |
+
|
233 |
+
$buffer = apply_filters( 'wph/ob_start_callback', $buffer );
|
234 |
|
235 |
return $buffer;
|
236 |
|
250 |
$wp_query->set_404();
|
251 |
status_header(404);
|
252 |
|
253 |
+
remove_action( 'template_redirect', 'wp_redirect_admin_locations', 999 );
|
254 |
|
255 |
}
|
256 |
|
351 |
foreach($module_settings as $module_setting)
|
352 |
{
|
353 |
$field_id = $module_setting['id'];
|
354 |
+
$saved_field_value = isset($this->settings['module_settings'][$module_id . '_' . $field_id]) ? $this->settings['module_settings'][$module_id . '_' . $field_id] : '';
|
355 |
|
356 |
$_callback = isset($module_setting['callback_saved']) ? $module_setting['callback_saved'] : '';
|
357 |
if(empty($_callback))
|
428 |
$this->templates_data['_template_' . $child_template] = 'child';
|
429 |
}
|
430 |
|
431 |
+
//catch the absolute siteurl in case wp folder is different than domain root
|
432 |
+
$this->default_variables['wordpress_directory'] = '';
|
433 |
+
$this->default_variables['content_directory'] = '';
|
434 |
+
$this->default_variables['plugins_directory'] = '';
|
435 |
+
|
436 |
+
//CONTENT_DIR
|
437 |
+
//SITECOOKIEPATH
|
438 |
+
|
439 |
+
$home_url = defined('WP_HOME') ? WP_HOME : get_option('home');
|
440 |
+
$home_url = untrailingslashit($home_url);
|
441 |
+
|
442 |
+
$siteurl = defined('WP_HOME') ? WP_SITEURL : get_option('siteurl');
|
443 |
+
$siteurl = untrailingslashit($siteurl);
|
444 |
+
|
445 |
+
$wp_directory = str_replace($home_url, "" , $siteurl);
|
446 |
+
$wp_directory = trim(trim($wp_directory), '/');
|
447 |
+
|
448 |
+
if($wp_directory != '')
|
449 |
+
{
|
450 |
+
$this->default_variables['wordpress_directory'] = $wp_directory;
|
451 |
+
|
452 |
+
$domain_ABSPATH = str_replace($wp_directory, "", untrailingslashit( realpath( ABSPATH )));
|
453 |
+
|
454 |
+
$content_directory = str_replace($domain_ABSPATH, "" , untrailingslashit( realpath( WP_CONTENT_DIR )));
|
455 |
+
$this->default_variables['content_directory'] = $content_directory;
|
456 |
+
}
|
457 |
+
|
458 |
+
}
|
459 |
+
|
460 |
+
|
461 |
+
|
462 |
+
/**
|
463 |
+
* Add default Url Replacements
|
464 |
+
*
|
465 |
+
*/
|
466 |
+
function add_default_replacements()
|
467 |
+
{
|
468 |
+
|
469 |
+
|
470 |
+
}
|
471 |
+
|
472 |
|
473 |
function switch_theme()
|
474 |
{
|
languages/wp-hide.mo
CHANGED
Binary file
|
languages/wp-hide.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Post Types Order\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
-
"Last-Translator: Nsp Code <
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -13,65 +13,67 @@ msgstr ""
|
|
13 |
"X-Poedit-Basepath: ../\n"
|
14 |
"X-Poedit-SearchPath-0: .\n"
|
15 |
|
16 |
-
#: include/wph.class.php:
|
17 |
-
msgid ""
|
18 |
-
"Help us to improve this plugin by reporting any issues at <a target=\"_blank"
|
19 |
-
"\" href=\"http://www.nsp-code.com/\">www.nsp-code.com</a>"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: include/wph.class.php:
|
23 |
msgid ""
|
24 |
"Permalink is required to be turned ON for WP Hide & Security Enhancer to work"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: include/wph.class.php:
|
28 |
msgid "Settings saved"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: include/wph.class.php:
|
32 |
msgid ""
|
33 |
"W3 Total Cache Plugin is active, make sure you clear the cache for new "
|
34 |
"changes to apply"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: include/wph.class.php:
|
38 |
msgid ""
|
39 |
"WP Super Cache Plugin is active, make sure you clear the cache for new "
|
40 |
"changes to apply"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: modules/module-admin.php:
|
44 |
-
msgid "
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: modules/module-admin.php:
|
48 |
-
msgid "Block default
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: modules/module-admin.php:
|
52 |
#: modules/module-general.php:58 modules/module-general.php:78
|
53 |
#: modules/module-general.php:94 modules/module-general.php:111
|
54 |
#: modules/module-general.php:127 modules/module-general.php:145
|
55 |
-
#: modules/module-rewrite.php:
|
56 |
-
#: modules/module-rewrite.php:205
|
57 |
msgid "Yes"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: modules/module-admin.php:
|
61 |
#: modules/module-general.php:59 modules/module-general.php:79
|
62 |
#: modules/module-general.php:95 modules/module-general.php:112
|
63 |
#: modules/module-general.php:128 modules/module-general.php:146
|
64 |
-
#: modules/module-rewrite.php:
|
65 |
-
#: modules/module-rewrite.php:206
|
66 |
msgid "No"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: modules/module-admin.php:
|
70 |
-
msgid "
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: modules/module-admin.php:
|
74 |
-
msgid "Block default
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
msgstr ""
|
76 |
|
77 |
#: modules/module-general.php:54
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Post Types Order\n"
|
4 |
+
"POT-Creation-Date: 2016-01-15 13:34+0200\n"
|
5 |
+
"PO-Revision-Date: 2016-01-15 13:34+0200\n"
|
6 |
+
"Last-Translator: Nsp Code <electronice_delphi@yahoo.com>\n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"X-Poedit-Basepath: ../\n"
|
14 |
"X-Poedit-SearchPath-0: .\n"
|
15 |
|
16 |
+
#: include/wph.class.php:186
|
17 |
+
msgid "Help us to improve this plugin by reporting any issues at "
|
|
|
|
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: include/wph.class.php:191
|
21 |
msgid ""
|
22 |
"Permalink is required to be turned ON for WP Hide & Security Enhancer to work"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: include/wph.class.php:196
|
26 |
msgid "Settings saved"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: include/wph.class.php:203
|
30 |
msgid ""
|
31 |
"W3 Total Cache Plugin is active, make sure you clear the cache for new "
|
32 |
"changes to apply"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: include/wph.class.php:207
|
36 |
msgid ""
|
37 |
"WP Super Cache Plugin is active, make sure you clear the cache for new "
|
38 |
"changes to apply"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: modules/module-admin.php:54
|
42 |
+
msgid "Map a new wp-login.php instead default."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: modules/module-admin.php:65
|
46 |
+
msgid "Block default wp-login.php file from being accesible."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: modules/module-admin.php:69 modules/module-admin.php:100
|
50 |
#: modules/module-general.php:58 modules/module-general.php:78
|
51 |
#: modules/module-general.php:94 modules/module-general.php:111
|
52 |
#: modules/module-general.php:127 modules/module-general.php:145
|
53 |
+
#: modules/module-rewrite.php:155 modules/module-rewrite.php:188
|
|
|
54 |
msgid "Yes"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: modules/module-admin.php:70 modules/module-admin.php:101
|
58 |
#: modules/module-general.php:59 modules/module-general.php:79
|
59 |
#: modules/module-general.php:95 modules/module-general.php:112
|
60 |
#: modules/module-general.php:128 modules/module-general.php:146
|
61 |
+
#: modules/module-rewrite.php:156 modules/module-rewrite.php:189
|
|
|
62 |
msgid "No"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: modules/module-admin.php:85
|
66 |
+
msgid "Create a new admin url instead default /wp-admin and /login."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: modules/module-admin.php:96
|
70 |
+
msgid "Block default admin url and files from being accesible."
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: modules/module-admin.php:96
|
74 |
+
msgid ""
|
75 |
+
"Warning: Write down your new admin url, or if lost, will not be able to log-"
|
76 |
+
"in ."
|
77 |
msgstr ""
|
78 |
|
79 |
#: modules/module-general.php:54
|
modules/module-admin.php
CHANGED
@@ -48,12 +48,10 @@
|
|
48 |
$module_settings = array();
|
49 |
|
50 |
|
51 |
-
|
52 |
-
|
53 |
$module_settings[] = array(
|
54 |
-
'id' => '
|
55 |
-
'label' => 'New
|
56 |
-
'description' => __('
|
57 |
|
58 |
'input_type' => 'text',
|
59 |
|
@@ -62,9 +60,9 @@
|
|
62 |
);
|
63 |
|
64 |
$module_settings[] = array(
|
65 |
-
'id' => '
|
66 |
-
'label' => 'Block default
|
67 |
-
'description' => __('Block default
|
68 |
|
69 |
'input_type' => 'radio',
|
70 |
'options' => array(
|
@@ -76,16 +74,15 @@
|
|
76 |
'sanitize_type' => array('sanitize_title', 'strtolower')
|
77 |
|
78 |
);
|
79 |
-
|
80 |
$module_settings[] = array(
|
81 |
'type' => 'split',
|
82 |
-
);
|
83 |
-
|
84 |
|
85 |
$module_settings[] = array(
|
86 |
-
'id' => '
|
87 |
-
'label' => 'New
|
88 |
-
'description' => __('
|
89 |
|
90 |
'input_type' => 'text',
|
91 |
|
@@ -94,9 +91,9 @@
|
|
94 |
);
|
95 |
|
96 |
$module_settings[] = array(
|
97 |
-
'id' => '
|
98 |
-
'label' => 'Block default
|
99 |
-
'description' => __('Block default
|
100 |
|
101 |
'input_type' => 'radio',
|
102 |
'options' => array(
|
@@ -131,7 +128,6 @@
|
|
131 |
|
132 |
add_filter('admin_url', array($this,'admin_url'), 999, 3 );
|
133 |
add_action('set_auth_cookie', array($this,'set_auth_cookie'), 999, 5);
|
134 |
-
add_action('clear_auth_cookie', array($this,'clear_auth_cookie'));
|
135 |
add_filter('style_loader_src', array($this->wph, 'generic_string_replacement' ), 999);
|
136 |
|
137 |
add_filter('wp_default_scripts', array($this, 'wp_default_scripts' ), 999);
|
@@ -146,10 +142,15 @@
|
|
146 |
return $processing_response;
|
147 |
|
148 |
$admin_url = $this->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' );
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
$text = "\nRewriteCond %{REQUEST_URI} ". $saved_field_data ."$";
|
151 |
$text .= "\nRewriteRule ^(.*)$ ". $saved_field_data ."/ [R=301,L]";
|
152 |
-
$text .= "\nRewriteRule ^" . $
|
153 |
|
154 |
$processing_response['htaccess'] = $text;
|
155 |
$processing_response['page_refresh'] = TRUE;
|
@@ -202,29 +203,7 @@
|
|
202 |
$logged_in_cookie = wp_generate_auth_cookie( $user_id, $expiration, 'logged_in', $token );
|
203 |
|
204 |
}
|
205 |
-
|
206 |
-
function clear_auth_cookie()
|
207 |
-
{
|
208 |
-
|
209 |
-
$new_admin_url = $this->functions->get_module_item_setting('admin_url' , $this->get_module_id());
|
210 |
-
|
211 |
-
$secure = is_ssl();
|
212 |
-
$secure = apply_filters( 'secure_auth_cookie', $secure, $user_id );
|
213 |
-
if ( $secure )
|
214 |
-
{
|
215 |
-
$auth_cookie_name = SECURE_AUTH_COOKIE;
|
216 |
-
$scheme = 'secure_auth';
|
217 |
-
}
|
218 |
-
else
|
219 |
-
{
|
220 |
-
$auth_cookie_name = AUTH_COOKIE;
|
221 |
-
$scheme = 'auth';
|
222 |
-
}
|
223 |
-
|
224 |
-
setcookie($auth_cookie_name,'', time() - YEAR_IN_SECONDS, SITECOOKIEPATH . $new_admin_url, COOKIE_DOMAIN );
|
225 |
-
}
|
226 |
-
|
227 |
-
|
228 |
function wp_default_scripts($scripts)
|
229 |
{
|
230 |
//check if custom admin url is set
|
@@ -282,7 +261,22 @@
|
|
282 |
|
283 |
$text .= "RewriteRule ^dashboard(.*) $site_index?throw_404 [L]\n";
|
284 |
$text .= "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
285 |
-
$text .= "RewriteRule ^admin(.*) $site_index?throw_404 [L]";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
|
287 |
$processing_response['htaccess'] = $text;
|
288 |
|
@@ -297,9 +291,10 @@
|
|
297 |
|
298 |
|
299 |
//add replacement
|
|
|
300 |
if(!isset($this->wph->urls_replacement[$url]))
|
301 |
{
|
302 |
-
$this->wph->urls_replacement[
|
303 |
}
|
304 |
}
|
305 |
|
@@ -312,8 +307,13 @@
|
|
312 |
return $processing_response;
|
313 |
|
314 |
$new_wp_login_php = untrailingslashit ( $this->functions->get_url_path( trailingslashit( site_url() ) . 'wp-login.php' ) );
|
|
|
|
|
|
|
|
|
|
|
315 |
|
316 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" . $
|
317 |
|
318 |
return $processing_response;
|
319 |
}
|
@@ -341,9 +341,14 @@
|
|
341 |
return FALSE;
|
342 |
|
343 |
$site_index = $this->functions->get_url_path ( trailingslashit( site_url() ) . 'index.php', TRUE );
|
|
|
|
|
|
|
|
|
|
|
344 |
|
345 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
346 |
-
$text .= "RewriteRule ^
|
347 |
|
348 |
$processing_response['htaccess'] = $text;
|
349 |
|
48 |
$module_settings = array();
|
49 |
|
50 |
|
|
|
|
|
51 |
$module_settings[] = array(
|
52 |
+
'id' => 'new_wp_login_php',
|
53 |
+
'label' => 'New wp-login.php',
|
54 |
+
'description' => __('Map a new wp-login.php instead default.', 'wp-hide'),
|
55 |
|
56 |
'input_type' => 'text',
|
57 |
|
60 |
);
|
61 |
|
62 |
$module_settings[] = array(
|
63 |
+
'id' => 'block_default_wp_login_php',
|
64 |
+
'label' => 'Block default wp-login.php',
|
65 |
+
'description' => __('Block default wp-login.php file from being accesible.', 'wp-hide'),
|
66 |
|
67 |
'input_type' => 'radio',
|
68 |
'options' => array(
|
74 |
'sanitize_type' => array('sanitize_title', 'strtolower')
|
75 |
|
76 |
);
|
77 |
+
|
78 |
$module_settings[] = array(
|
79 |
'type' => 'split',
|
80 |
+
);
|
|
|
81 |
|
82 |
$module_settings[] = array(
|
83 |
+
'id' => 'admin_url',
|
84 |
+
'label' => 'New Admin Url',
|
85 |
+
'description' => __('Create a new admin url instead default /wp-admin and /login.', 'wp-hide'),
|
86 |
|
87 |
'input_type' => 'text',
|
88 |
|
91 |
);
|
92 |
|
93 |
$module_settings[] = array(
|
94 |
+
'id' => 'block_default_admin_url',
|
95 |
+
'label' => 'Block default Admin Url',
|
96 |
+
'description' => __('Block default admin url and files from being accesible.', 'wp-hide') . '<br /><span class="important">' . __('Warning: Write down your new admin url, or if lost, will not be able to log-in .', 'wp-hide') . '</span>',
|
97 |
|
98 |
'input_type' => 'radio',
|
99 |
'options' => array(
|
128 |
|
129 |
add_filter('admin_url', array($this,'admin_url'), 999, 3 );
|
130 |
add_action('set_auth_cookie', array($this,'set_auth_cookie'), 999, 5);
|
|
|
131 |
add_filter('style_loader_src', array($this->wph, 'generic_string_replacement' ), 999);
|
132 |
|
133 |
add_filter('wp_default_scripts', array($this, 'wp_default_scripts' ), 999);
|
142 |
return $processing_response;
|
143 |
|
144 |
$admin_url = $this->functions->get_url_path( trailingslashit( site_url() ) . 'wp-admin' );
|
145 |
+
|
146 |
+
$path = '';
|
147 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
148 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
149 |
+
$path .= trailingslashit( $saved_field_data );
|
150 |
|
151 |
$text = "\nRewriteCond %{REQUEST_URI} ". $saved_field_data ."$";
|
152 |
$text .= "\nRewriteRule ^(.*)$ ". $saved_field_data ."/ [R=301,L]";
|
153 |
+
$text .= "\nRewriteRule ^" . $path . '(.*) '. $admin_url .'$1 [L,QSA]';
|
154 |
|
155 |
$processing_response['htaccess'] = $text;
|
156 |
$processing_response['page_refresh'] = TRUE;
|
203 |
$logged_in_cookie = wp_generate_auth_cookie( $user_id, $expiration, 'logged_in', $token );
|
204 |
|
205 |
}
|
206 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
function wp_default_scripts($scripts)
|
208 |
{
|
209 |
//check if custom admin url is set
|
261 |
|
262 |
$text .= "RewriteRule ^dashboard(.*) $site_index?throw_404 [L]\n";
|
263 |
$text .= "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
264 |
+
$text .= "RewriteRule ^admin(.*) $site_index?throw_404 [L]\n";
|
265 |
+
|
266 |
+
$path = '';
|
267 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
268 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
269 |
+
|
270 |
+
if(!empty($path))
|
271 |
+
{
|
272 |
+
$text .= "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
273 |
+
$text .= "RewriteRule ^".$path."wp-admin(.*) $site_index?throw_404 [L]\n";
|
274 |
+
$text .= "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
275 |
+
$text .= "RewriteRule ^".$path."dashboard(.*) $site_index?throw_404 [L]\n";
|
276 |
+
$text .= "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
277 |
+
$text .= "RewriteRule ^".$path."admin(.*) $site_index?throw_404 [L]";
|
278 |
+
}
|
279 |
+
|
280 |
|
281 |
$processing_response['htaccess'] = $text;
|
282 |
|
291 |
|
292 |
|
293 |
//add replacement
|
294 |
+
$url = trailingslashit( site_url() ) . 'wp-login.php';
|
295 |
if(!isset($this->wph->urls_replacement[$url]))
|
296 |
{
|
297 |
+
$this->wph->urls_replacement[ $url ] = trailingslashit( site_url() ) . $saved_field_data;
|
298 |
}
|
299 |
}
|
300 |
|
307 |
return $processing_response;
|
308 |
|
309 |
$new_wp_login_php = untrailingslashit ( $this->functions->get_url_path( trailingslashit( site_url() ) . 'wp-login.php' ) );
|
310 |
+
|
311 |
+
$path = '';
|
312 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
313 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
314 |
+
$path .= $saved_field_data;
|
315 |
|
316 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . $path . '(.*) '. $new_wp_login_php .'$1 [L,QSA]';
|
317 |
|
318 |
return $processing_response;
|
319 |
}
|
341 |
return FALSE;
|
342 |
|
343 |
$site_index = $this->functions->get_url_path ( trailingslashit( site_url() ) . 'index.php', TRUE );
|
344 |
+
|
345 |
+
$path = '';
|
346 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
347 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
348 |
+
$path .= 'wp-login.php';
|
349 |
|
350 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
351 |
+
$text .= "RewriteRule ^" . $path ." /404 [L]";
|
352 |
|
353 |
$processing_response['htaccess'] = $text;
|
354 |
|
modules/module-rewrite.php
CHANGED
@@ -127,24 +127,7 @@
|
|
127 |
|
128 |
'sanitize_type' => array(array($this->functions, 'sanitize_file_path_name'))
|
129 |
);
|
130 |
-
|
131 |
-
$module_settings[] = array(
|
132 |
-
'id' => 'block_wpinclude_url',
|
133 |
-
'label' => 'Block wp-include URL',
|
134 |
-
'description' => 'Block wp-include files from being accesible through default urls. <br />Apply only if <b>New Include Path</b> is not empty.',
|
135 |
-
|
136 |
-
'input_type' => 'radio',
|
137 |
-
'options' => array(
|
138 |
-
'yes' => __('Yes', 'wp-hide'),
|
139 |
-
'no' => __('No', 'wp-hide'),
|
140 |
-
),
|
141 |
-
'default_value' => 'no',
|
142 |
-
|
143 |
-
'sanitize_type' => array('sanitize_title', 'strtolower')
|
144 |
-
|
145 |
-
);
|
146 |
-
|
147 |
-
|
148 |
$module_settings[] = array(
|
149 |
'type' => 'split',
|
150 |
);
|
@@ -210,6 +193,7 @@
|
|
210 |
'sanitize_type' => array('sanitize_title', 'strtolower')
|
211 |
|
212 |
);
|
|
|
213 |
|
214 |
$module_settings = apply_filters('wp-hide/module_settings', $module_settings, $this);
|
215 |
|
@@ -218,7 +202,11 @@
|
|
218 |
|
219 |
}
|
220 |
|
221 |
-
|
|
|
|
|
|
|
|
|
222 |
function _callback_new_theme_path($saved_field_data)
|
223 |
{
|
224 |
if(empty($saved_field_data))
|
@@ -245,8 +233,13 @@
|
|
245 |
return $processing_response;
|
246 |
|
247 |
$theme_path = $this->functions->get_url_path( $this->wph->templates_data['themes_url'] . $this->wph->templates_data['main']['folder_name'] );
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" .
|
250 |
|
251 |
return $processing_response;
|
252 |
}
|
@@ -330,8 +323,13 @@
|
|
330 |
return $processing_response;
|
331 |
|
332 |
$theme_path = $this->functions->get_url_path( $this->wph->templates_data['themes_url'] . $this->wph->templates_data['child']['folder_name'] );
|
|
|
|
|
|
|
|
|
|
|
333 |
|
334 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" .
|
335 |
|
336 |
return $processing_response;
|
337 |
}
|
@@ -359,8 +357,13 @@
|
|
359 |
$current_stylesheet_uri = $this->wph->default_variables['stylesheet_uri'];
|
360 |
|
361 |
$current_stylesheet_uri = $this->functions->get_url_path( $current_stylesheet_uri, TRUE );
|
|
|
|
|
|
|
|
|
|
|
362 |
|
363 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" .
|
364 |
|
365 |
return $processing_response;
|
366 |
}
|
@@ -405,7 +408,14 @@
|
|
405 |
|
406 |
|
407 |
}
|
408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
function _callback_new_include_path($saved_field_data)
|
410 |
{
|
411 |
if(empty($saved_field_data))
|
@@ -417,6 +427,11 @@
|
|
417 |
add_filter('style_loader_src', array( $this, 'style_loader_src' ), 999, 2);
|
418 |
|
419 |
add_filter('wp_default_scripts', array($this, 'wp_default_scripts' ), 999);
|
|
|
|
|
|
|
|
|
|
|
420 |
}
|
421 |
|
422 |
function _callback_saved_new_include_path($saved_field_data)
|
@@ -428,9 +443,14 @@
|
|
428 |
return $processing_response;
|
429 |
|
430 |
|
431 |
-
$include_path
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" .
|
434 |
|
435 |
return $processing_response;
|
436 |
}
|
@@ -499,39 +519,24 @@
|
|
499 |
$scripts = $this->functions->default_scripts_styles_replace($scripts, array('wp-includes' => $include_path));
|
500 |
}
|
501 |
|
502 |
-
|
503 |
-
function _callback_saved_block_wpinclude_url($saved_field_data)
|
504 |
-
{
|
505 |
-
$processing_response = array();
|
506 |
-
|
507 |
-
if(empty($saved_field_data) || $saved_field_data == 'no')
|
508 |
-
return FALSE;
|
509 |
|
510 |
-
//prevent from blocking if the wp-include is not modified
|
511 |
-
$new_include_path = ltrim(rtrim($this->functions->get_module_item_setting('new_include_path' , $this->get_module_id()), "/"), "/");
|
512 |
-
if (empty( $new_include_path ))
|
513 |
-
return FALSE;
|
514 |
-
|
515 |
-
$theme_roots = ltrim(rtrim(get_theme_roots(), "/"), "/");
|
516 |
-
|
517 |
-
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
518 |
-
$text .= "RewriteRule ^wp-includes(.*) /404 [L]";
|
519 |
-
|
520 |
-
$processing_response['htaccess'] = $text;
|
521 |
-
|
522 |
-
return $processing_response;
|
523 |
-
|
524 |
-
|
525 |
-
}
|
526 |
-
|
527 |
|
|
|
|
|
|
|
|
|
|
|
528 |
function _callback_new_plugin_path($saved_field_data)
|
529 |
{
|
530 |
if(empty($saved_field_data))
|
531 |
return FALSE;
|
532 |
|
533 |
-
|
534 |
-
|
|
|
|
|
|
|
|
|
535 |
}
|
536 |
|
537 |
function _callback_saved_new_plugin_path($saved_field_data)
|
@@ -543,12 +548,16 @@
|
|
543 |
return $processing_response;
|
544 |
|
545 |
$plugin_path = $this->functions->get_url_path( WP_PLUGIN_URL );
|
|
|
|
|
|
|
|
|
|
|
546 |
|
547 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" . trailingslashit( $
|
548 |
|
549 |
return $processing_response;
|
550 |
}
|
551 |
-
|
552 |
|
553 |
function plugins_url($url, $path, $plugin)
|
554 |
{
|
@@ -561,7 +570,6 @@
|
|
561 |
|
562 |
return $new_url;
|
563 |
}
|
564 |
-
|
565 |
|
566 |
function _callback_saved_block_plugins_url($saved_field_data)
|
567 |
{
|
@@ -575,8 +583,11 @@
|
|
575 |
if (empty( $new_theme_path ))
|
576 |
return FALSE;
|
577 |
|
|
|
|
|
|
|
578 |
$default_plugin_url = untrailingslashit ( WP_PLUGIN_URL );
|
579 |
-
$default_plugin_url = str_replace(
|
580 |
$default_plugin_url = ltrim(rtrim($default_plugin_url, "/"), "/");
|
581 |
|
582 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
@@ -588,7 +599,14 @@
|
|
588 |
|
589 |
|
590 |
}
|
591 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
function _callback_new_upload_path($saved_field_data)
|
593 |
{
|
594 |
if(empty($saved_field_data))
|
@@ -606,10 +624,17 @@
|
|
606 |
//check if the field is noe empty
|
607 |
if(empty($saved_field_data))
|
608 |
return $processing_response;
|
|
|
|
|
609 |
|
610 |
-
$uploads_path = $this->functions->get_url_path(
|
|
|
|
|
|
|
|
|
|
|
611 |
|
612 |
-
$processing_response['htaccess'] = "\nRewriteRule ^" .
|
613 |
|
614 |
return $processing_response;
|
615 |
}
|
@@ -667,9 +692,14 @@
|
|
667 |
$default_upload_url = untrailingslashit ( $wp_upload_dir['baseurl'] );
|
668 |
$default_upload_url = str_replace( site_url(), "", $default_upload_url);
|
669 |
$default_upload_url = ltrim(rtrim($default_upload_url, "/"), "/");
|
|
|
|
|
|
|
|
|
|
|
670 |
|
671 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
672 |
-
$text .= "RewriteRule ^". $
|
673 |
|
674 |
$processing_response['htaccess'] = $text;
|
675 |
|
@@ -677,7 +707,9 @@
|
|
677 |
|
678 |
|
679 |
}
|
680 |
-
|
|
|
|
|
681 |
|
682 |
}
|
683 |
|
127 |
|
128 |
'sanitize_type' => array(array($this->functions, 'sanitize_file_path_name'))
|
129 |
);
|
130 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
$module_settings[] = array(
|
132 |
'type' => 'split',
|
133 |
);
|
193 |
'sanitize_type' => array('sanitize_title', 'strtolower')
|
194 |
|
195 |
);
|
196 |
+
|
197 |
|
198 |
$module_settings = apply_filters('wp-hide/module_settings', $module_settings, $this);
|
199 |
|
202 |
|
203 |
}
|
204 |
|
205 |
+
/**
|
206 |
+
* New Theme Path
|
207 |
+
*
|
208 |
+
* @param mixed $saved_field_data
|
209 |
+
*/
|
210 |
function _callback_new_theme_path($saved_field_data)
|
211 |
{
|
212 |
if(empty($saved_field_data))
|
233 |
return $processing_response;
|
234 |
|
235 |
$theme_path = $this->functions->get_url_path( $this->wph->templates_data['themes_url'] . $this->wph->templates_data['main']['folder_name'] );
|
236 |
+
|
237 |
+
$path = '';
|
238 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
239 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
240 |
+
$path .= trailingslashit( $saved_field_data );
|
241 |
|
242 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . $path . '(.*) '. $theme_path .'$1 [L,QSA]';
|
243 |
|
244 |
return $processing_response;
|
245 |
}
|
323 |
return $processing_response;
|
324 |
|
325 |
$theme_path = $this->functions->get_url_path( $this->wph->templates_data['themes_url'] . $this->wph->templates_data['child']['folder_name'] );
|
326 |
+
|
327 |
+
$path = '';
|
328 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
329 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
330 |
+
$path .= trailingslashit( $saved_field_data );
|
331 |
|
332 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . $path . '(.*) '. $theme_path .'$1 [L,QSA]';
|
333 |
|
334 |
return $processing_response;
|
335 |
}
|
357 |
$current_stylesheet_uri = $this->wph->default_variables['stylesheet_uri'];
|
358 |
|
359 |
$current_stylesheet_uri = $this->functions->get_url_path( $current_stylesheet_uri, TRUE );
|
360 |
+
|
361 |
+
$path = '';
|
362 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
363 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
364 |
+
$path .= $saved_field_data;
|
365 |
|
366 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . $path . ' '. $current_stylesheet_uri .' [L,QSA]';
|
367 |
|
368 |
return $processing_response;
|
369 |
}
|
408 |
|
409 |
|
410 |
}
|
411 |
+
|
412 |
+
|
413 |
+
|
414 |
+
/**
|
415 |
+
* New Include Path
|
416 |
+
* *
|
417 |
+
* @param mixed $saved_field_data
|
418 |
+
*/
|
419 |
function _callback_new_include_path($saved_field_data)
|
420 |
{
|
421 |
if(empty($saved_field_data))
|
427 |
add_filter('style_loader_src', array( $this, 'style_loader_src' ), 999, 2);
|
428 |
|
429 |
add_filter('wp_default_scripts', array($this, 'wp_default_scripts' ), 999);
|
430 |
+
|
431 |
+
//add default plugin path replacement
|
432 |
+
$new_include_path = $this->functions->untrailingslashit_all( $this->functions->get_module_item_setting('new_include_path' , $this->get_module_id()) );
|
433 |
+
$new_include_path = trailingslashit( site_url() ) . untrailingslashit( $new_include_path );
|
434 |
+
$this->wph->urls_replacement[trailingslashit( site_url() ) . 'wp-includes' ] = $new_include_path;
|
435 |
}
|
436 |
|
437 |
function _callback_saved_new_include_path($saved_field_data)
|
443 |
return $processing_response;
|
444 |
|
445 |
|
446 |
+
$include_path = $this->functions->get_url_path( trailingslashit(site_url()) . WPINC );
|
447 |
+
|
448 |
+
$path = '';
|
449 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
450 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
451 |
+
$path .= trailingslashit( $saved_field_data );
|
452 |
|
453 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . $path . '(.*) '. $include_path .'$1 [L,QSA]';
|
454 |
|
455 |
return $processing_response;
|
456 |
}
|
519 |
$scripts = $this->functions->default_scripts_styles_replace($scripts, array('wp-includes' => $include_path));
|
520 |
}
|
521 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
523 |
|
524 |
+
/**
|
525 |
+
* New Plugin Path
|
526 |
+
*
|
527 |
+
* @param mixed $saved_field_data
|
528 |
+
*/
|
529 |
function _callback_new_plugin_path($saved_field_data)
|
530 |
{
|
531 |
if(empty($saved_field_data))
|
532 |
return FALSE;
|
533 |
|
534 |
+
//add_filter('plugins_url',array( $this, 'plugins_url' ), 10, 3);
|
535 |
+
|
536 |
+
//add default plugin path replacement
|
537 |
+
$new_plugin_path = $this->functions->untrailingslashit_all( $this->functions->get_module_item_setting('new_plugin_path' , $this->get_module_id()) );
|
538 |
+
$new_plugin_path = trailingslashit( site_url() ) . untrailingslashit( $new_plugin_path );
|
539 |
+
$this->wph->urls_replacement[WP_PLUGIN_URL] = $new_plugin_path;
|
540 |
}
|
541 |
|
542 |
function _callback_saved_new_plugin_path($saved_field_data)
|
548 |
return $processing_response;
|
549 |
|
550 |
$plugin_path = $this->functions->get_url_path( WP_PLUGIN_URL );
|
551 |
+
|
552 |
+
$path = '';
|
553 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
554 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
555 |
+
$path .= trailingslashit( $saved_field_data );
|
556 |
|
557 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . trailingslashit( $path ) . '(.*) '. $plugin_path .'$1 [L,QSA]';
|
558 |
|
559 |
return $processing_response;
|
560 |
}
|
|
|
561 |
|
562 |
function plugins_url($url, $path, $plugin)
|
563 |
{
|
570 |
|
571 |
return $new_url;
|
572 |
}
|
|
|
573 |
|
574 |
function _callback_saved_block_plugins_url($saved_field_data)
|
575 |
{
|
583 |
if (empty( $new_theme_path ))
|
584 |
return FALSE;
|
585 |
|
586 |
+
$home_url = defined('WP_HOME') ? WP_HOME : get_option('home');
|
587 |
+
$home_url = untrailingslashit($home_url);
|
588 |
+
|
589 |
$default_plugin_url = untrailingslashit ( WP_PLUGIN_URL );
|
590 |
+
$default_plugin_url = str_replace( $home_url, "", $default_plugin_url);
|
591 |
$default_plugin_url = ltrim(rtrim($default_plugin_url, "/"), "/");
|
592 |
|
593 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
599 |
|
600 |
|
601 |
}
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
/**
|
606 |
+
* New Upload Path
|
607 |
+
*
|
608 |
+
* @param mixed $saved_field_data
|
609 |
+
*/
|
610 |
function _callback_new_upload_path($saved_field_data)
|
611 |
{
|
612 |
if(empty($saved_field_data))
|
624 |
//check if the field is noe empty
|
625 |
if(empty($saved_field_data))
|
626 |
return $processing_response;
|
627 |
+
|
628 |
+
$wp_upload_dir = wp_upload_dir();
|
629 |
|
630 |
+
$uploads_path = $this->functions->get_url_path( $wp_upload_dir['baseurl'] );
|
631 |
+
|
632 |
+
$path = '';
|
633 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
634 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
635 |
+
$path .= trailingslashit( $saved_field_data );
|
636 |
|
637 |
+
$processing_response['htaccess'] = "\nRewriteRule ^" . $path . '(.*) '. $uploads_path .'$1 [L,QSA]';
|
638 |
|
639 |
return $processing_response;
|
640 |
}
|
692 |
$default_upload_url = untrailingslashit ( $wp_upload_dir['baseurl'] );
|
693 |
$default_upload_url = str_replace( site_url(), "", $default_upload_url);
|
694 |
$default_upload_url = ltrim(rtrim($default_upload_url, "/"), "/");
|
695 |
+
|
696 |
+
$path = '';
|
697 |
+
if(!empty($this->wph->default_variables['wordpress_directory']))
|
698 |
+
$path = trailingslashit($this->wph->default_variables['wordpress_directory']);
|
699 |
+
$path .= $default_upload_url;
|
700 |
|
701 |
$text = "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n";
|
702 |
+
$text .= "RewriteRule ^". $path ."(.*) /404 [L]";
|
703 |
|
704 |
$processing_response['htaccess'] = $text;
|
705 |
|
707 |
|
708 |
|
709 |
}
|
710 |
+
|
711 |
+
|
712 |
+
|
713 |
|
714 |
}
|
715 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: nsp-code
|
3 |
Donate link: http://www.nsp-code.com/donate.php
|
4 |
-
Tags: hide, security, improve security, hacking
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.4
|
7 |
-
Stable tag: 1.0
|
8 |
|
9 |
Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
10 |
|
@@ -71,6 +71,13 @@ Please get in touch with us and we'll do our best to include it for a later vers
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
= 1.0 =
|
75 |
* Initial release.
|
76 |
|
1 |
=== Plugin Name ===
|
2 |
Contributors: nsp-code
|
3 |
Donate link: http://www.nsp-code.com/donate.php
|
4 |
+
Tags: hide, security, improve security, hacking, wp hide, wordpress hide
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.4.1
|
7 |
+
Stable tag: 1.0.3
|
8 |
|
9 |
Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
10 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 1.0.3 =
|
75 |
+
* Certain sections improvments and code redo
|
76 |
+
* Admin module cleanup
|
77 |
+
* removed block for wp-include
|
78 |
+
* Removed router functionality
|
79 |
+
* Created Change relative urls within load-style block, load the tyles on a separate file to change the links
|
80 |
+
|
81 |
= 1.0 =
|
82 |
* Initial release.
|
83 |
|
wp-hide.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.nsp-code.com
|
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
-
Version: 1.0
|
9 |
Text Domain: wp-hide
|
10 |
Domain Path: /languages/
|
11 |
*/
|
@@ -29,7 +29,7 @@ Domain Path: /languages/
|
|
29 |
|
30 |
function WPH_activated($network_wide)
|
31 |
{
|
32 |
-
flush_rewrite_rules();
|
33 |
}
|
34 |
|
35 |
function WPH_deactivated()
|
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.0.3
|
9 |
Text Domain: wp-hide
|
10 |
Domain Path: /languages/
|
11 |
*/
|
29 |
|
30 |
function WPH_activated($network_wide)
|
31 |
{
|
32 |
+
flush_rewrite_rules();
|
33 |
}
|
34 |
|
35 |
function WPH_deactivated()
|