Version Description
- Updated security in code
- Tested with wordpress version 5.9.3
Download this release
Release Info
Developer | india-web-developer |
Plugin | Protect Your Admin |
Version | 3.8 |
Comparing to | |
See all releases |
Code changes from version 3.7 to 3.8
- protect-wp-admin.php +31 -17
- readme.txt +15 -7
protect-wp-admin.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.wp-experts.in/
|
|
5 |
Description: Give extra protection to your site admin and make secure your website against hackers!!
|
6 |
Author: WP Experts Team
|
7 |
Author URI: https://www.wp-experts.in/
|
8 |
-
Version: 3.
|
9 |
*/
|
10 |
|
11 |
/*** WP Experts Team Copyright 2017-2020 (email : raghunath.0087@gmail.com)
|
@@ -69,24 +69,17 @@ add_action('admin_init','init_pwa_options_fields');
|
|
69 |
/** Register "Protect WP-Admin" options */
|
70 |
if(!function_exists('init_pwa_options_fields')):
|
71 |
function init_pwa_options_fields(){
|
72 |
-
register_setting('pwa_setting_options','pwa_active');
|
73 |
-
register_setting('pwa_setting_options','pwa_rewrite_text','
|
74 |
-
register_setting('pwa_setting_options','pwa_restrict');
|
75 |
-
register_setting('pwa_setting_options','pwa_logout');
|
76 |
-
register_setting('pwa_setting_options','pwa_allow_custom_users');
|
77 |
-
register_setting('pwa_setting_options','pwa_logo_path');
|
78 |
-
register_setting('pwa_setting_options','pwa_login_page_bg_color');
|
79 |
-
register_setting('pwa_setting_options','pwa_login_page_color');
|
80 |
}
|
81 |
endif;
|
82 |
-
|
83 |
-
function pwa_sanitization_newslug_escaping_text($val)
|
84 |
-
{
|
85 |
-
//sanitize
|
86 |
-
$val = sanitize_text_field($val);
|
87 |
-
return $val;
|
88 |
-
}
|
89 |
-
endif;
|
90 |
/** Add settings link to plugin list page in admin */
|
91 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'pwa_action_links' );
|
92 |
if(!function_exists('pwa_action_links')):
|
@@ -344,4 +337,25 @@ function pwa_flush_rewrite_rules(){
|
|
344 |
}
|
345 |
}
|
346 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
?>
|
5 |
Description: Give extra protection to your site admin and make secure your website against hackers!!
|
6 |
Author: WP Experts Team
|
7 |
Author URI: https://www.wp-experts.in/
|
8 |
+
Version: 3.8
|
9 |
*/
|
10 |
|
11 |
/*** WP Experts Team Copyright 2017-2020 (email : raghunath.0087@gmail.com)
|
69 |
/** Register "Protect WP-Admin" options */
|
70 |
if(!function_exists('init_pwa_options_fields')):
|
71 |
function init_pwa_options_fields(){
|
72 |
+
register_setting('pwa_setting_options','pwa_active', 'sanitize_text_field' );
|
73 |
+
register_setting('pwa_setting_options','pwa_rewrite_text', 'sanitize_text_field' );
|
74 |
+
register_setting('pwa_setting_options','pwa_restrict', 'sanitize_text_field' );
|
75 |
+
register_setting('pwa_setting_options','pwa_logout', 'sanitize_text_field' );
|
76 |
+
register_setting('pwa_setting_options','pwa_allow_custom_users', 'sanitize_text_field' );
|
77 |
+
register_setting('pwa_setting_options','pwa_logo_path', 'sanitize_url' );
|
78 |
+
register_setting('pwa_setting_options','pwa_login_page_bg_color', 'sanitize_text_field' );
|
79 |
+
register_setting('pwa_setting_options','pwa_login_page_color', 'sanitize_text_field' );
|
80 |
}
|
81 |
endif;
|
82 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
/** Add settings link to plugin list page in admin */
|
84 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'pwa_action_links' );
|
85 |
if(!function_exists('pwa_action_links')):
|
337 |
}
|
338 |
}
|
339 |
endif;
|
340 |
+
/*
|
341 |
+
* call hooks action on update
|
342 |
+
* @upgrader_process_complete
|
343 |
+
*/
|
344 |
+
add_action( 'upgrader_process_complete', 'pwa_upgrade_function',10, 2);
|
345 |
+
|
346 |
+
function pwa_upgrade_function( $upgrader_object, $options ) {
|
347 |
+
|
348 |
+
$current_plugin_path_name = plugin_basename( __FILE__ );
|
349 |
+
|
350 |
+
if ($options['action'] == 'update' && $options['type'] == 'plugin' ) {
|
351 |
+
foreach($options['plugins'] as $each_plugin) {
|
352 |
+
if ($each_plugin==$current_plugin_path_name) {
|
353 |
+
|
354 |
+
add_action('init', 'init_pwa_admin_rewrite_rules' );
|
355 |
+
flush_rewrite_rules();
|
356 |
+
|
357 |
+
}
|
358 |
+
}
|
359 |
+
}
|
360 |
+
}
|
361 |
?>
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: wpexpertsin, india-web-developer
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
|
4 |
Tags: secure website, secure wordpress, protect wp admin, protection,security, wordpress protection, wordpress security, prevent hacking, hack, secure login, website security, change username, rename username, admin url, secure admin, username, protect admin, login, secure wordpress admin, admin login, admin, rename admin url
|
5 |
-
Requires at least: 5.
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -36,6 +36,10 @@ https://youtu.be/Mxr2MLDNACE
|
|
36 |
* Restrict Registered Non-Admin Users to Acces Admin Dashboard
|
37 |
* Allow Admin Dashboard Access Bt Defining Comma Separated Multiple Ids
|
38 |
|
|
|
|
|
|
|
|
|
39 |
= Add-on Features =
|
40 |
|
41 |
We have also released an add-on for Protect-WP-Admin which not only demonstrates the flexibility of Protect-WP-Admin, but also adds some important features
|
@@ -50,10 +54,10 @@ We have also released an add-on for Protect-WP-Admin which not only demonstrates
|
|
50 |
* Track User Login History.
|
51 |
* Faster Support.
|
52 |
|
53 |
-
**[ Click here to download add-on](https://www.wp-experts.in/products/protect-wp-admin-pro)**
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
https://youtu.be/sXywBe0XWy0
|
58 |
|
59 |
|
@@ -126,6 +130,10 @@ Here we are using new admin slug as "myadmin" so as per your new admin slug you
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
129 |
= 3.7 =
|
130 |
* fixed url issue
|
131 |
* optimized code
|
2 |
Contributors: wpexpertsin, india-web-developer
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
|
4 |
Tags: secure website, secure wordpress, protect wp admin, protection,security, wordpress protection, wordpress security, prevent hacking, hack, secure login, website security, change username, rename username, admin url, secure admin, username, protect admin, login, secure wordpress admin, admin login, admin, rename admin url
|
5 |
+
Requires at least: 5.3
|
6 |
+
Tested up to: 6.0.2
|
7 |
+
Stable tag: 3.8
|
8 |
|
9 |
== Description ==
|
10 |
|
36 |
* Restrict Registered Non-Admin Users to Acces Admin Dashboard
|
37 |
* Allow Admin Dashboard Access Bt Defining Comma Separated Multiple Ids
|
38 |
|
39 |
+
|
40 |
+
### FLAT 15% DISCOUNT ON !! No Coupon Code Required. Hurry! Limited Time Offer!
|
41 |
+
**[ Click here to download add-on](https://www.wp-experts.in/products/protect-wp-admin-pro/?utm_source=wordpress.org&utm_medium=free-plugin&utm_campaign=15off)**
|
42 |
+
|
43 |
= Add-on Features =
|
44 |
|
45 |
We have also released an add-on for Protect-WP-Admin which not only demonstrates the flexibility of Protect-WP-Admin, but also adds some important features
|
54 |
* Track User Login History.
|
55 |
* Faster Support.
|
56 |
|
57 |
+
**[ Click here to download add-on](https://www.wp-experts.in/products/protect-wp-admin-pro/?utm_source=wordpress.org&utm_medium=free-plugin&utm_campaign=15off)**
|
58 |
+
|
59 |
+
Do You Have Any Query? **[Submit here](https://www.wp-experts.in/contact-us/?utm_source=wordpress.org&utm_medium=free-plugin&utm_campaign=protect-admin)**
|
60 |
+
|
61 |
https://youtu.be/sXywBe0XWy0
|
62 |
|
63 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 3.8 =
|
134 |
+
* Updated security in code
|
135 |
+
* Tested with wordpress version 5.9.3
|
136 |
+
|
137 |
= 3.7 =
|
138 |
* fixed url issue
|
139 |
* optimized code
|