Protect Your Admin - Version 2.6

Version Description

  • Tested with new wordpress version 4.8
Download this release

Release Info

Developer india-web-developer
Plugin Icon 128x128 Protect Your Admin
Version 2.6
Comparing to
See all releases

Code changes from version 2.5 to 2.6

css/pwa-admin-min.css CHANGED
File without changes
images/mrweb.jpg CHANGED
File without changes
lib/pwa-deactivate.php CHANGED
File without changes
protect-wp-admin.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mrwebsolution.in/
5
  Description: "protect-wp-admin" is a very help full plugin to make wordpress admin more secure. Protect WP-Admin plugin is provide the options for change the wp-admin url and make the login page private(directly user can't access the login page).
6
  Author: MR Web Solution
7
  Author URI: http://www.mrwebsolution.in/
8
- Version: 2.5
9
  */
10
 
11
  /*** Protect WP-Admin Copyright 2014 Raghunath (email : raghunath.0087@gmail.com)
@@ -230,13 +230,9 @@ echo $script='<script type="text/javascript">
230
  if(seoUrlVal=="no")
231
  {
232
  alert("Please update permalinks before activate the plugin. permalinks option should not be default!.");
233
- document.location.href="'.admin_url('options-permalink.php').'";
234
  return false;
235
  }
236
- /*else if(htaccessWriteable=="0" && hostIP!="127.0.0.1"){
237
- alert("Error : .htaccess file is not exist OR may be htaccess file is not writable, So please double check it before enable the plugin");
238
- return false;
239
- }*/
240
  else
241
  {
242
  return true;
5
  Description: "protect-wp-admin" is a very help full plugin to make wordpress admin more secure. Protect WP-Admin plugin is provide the options for change the wp-admin url and make the login page private(directly user can't access the login page).
6
  Author: MR Web Solution
7
  Author URI: http://www.mrwebsolution.in/
8
+ Version: 2.6
9
  */
10
 
11
  /*** Protect WP-Admin Copyright 2014 Raghunath (email : raghunath.0087@gmail.com)
230
  if(seoUrlVal=="no")
231
  {
232
  alert("Please update permalinks before activate the plugin. permalinks option should not be default!.");
233
+ window.open("'.admin_url('options-permalink.php').'","_blank");
234
  return false;
235
  }
 
 
 
 
236
  else
237
  {
238
  return true;
pwa-class.php CHANGED
@@ -124,7 +124,7 @@ if(formId=="loginform"){
124
  }
125
  //alert(jQuery("#nav a").slice(0).attr("href"));
126
  ';
127
- $currentUrl = pwa_get_current_page_url($_SERVER);
128
  echo 'jQuery("#nav a").each(function(){
129
  /* var linkText=jQuery(this).attr("href");
130
 
@@ -226,6 +226,9 @@ elseif(isset($_GET['action']) && $_GET['action']=='resetpass')
226
  //silent is gold
227
  }else
228
  {
 
 
 
229
  wp_redirect(home_url('/'));//exit;
230
  }
231
  }else
124
  }
125
  //alert(jQuery("#nav a").slice(0).attr("href"));
126
  ';
127
+ $currentUrl = pwa_get_current_page_url($_SERVER);
128
  echo 'jQuery("#nav a").each(function(){
129
  /* var linkText=jQuery(this).attr("href");
130
 
226
  //silent is gold
227
  }else
228
  {
229
+
230
+ show_admin_bar(false); // disble admin_bar for guest user
231
+
232
  wp_redirect(home_url('/'));//exit;
233
  }
234
  }else
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors:india-web-developer
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
  Tags: Protect WP-Admin,wp-admin,Protect wordpress admin,Secure Admin,Admin,Scure Wordpress Admin,Rename Admin URL, Rename Wordpress Admin URL,Change wp-admin url,Change Admin URL,Change Admin Path,Restrict wp-admin
5
- Requires at least: 3.8
6
- Tested up to: 4.7
7
- Stable tag: 2.5
8
 
9
  Protect Your Website Admin Against Hackers & Modify Login Page Design
10
 
@@ -118,6 +118,9 @@ Don not forgot to update the "newadmin" slug with your new admin slug (that you
118
 
119
  == Changelog ==
120
 
 
 
 
121
  = 2.5 =
122
  * Fixed links issues on login, forget and register page for all language
123
  * Fixed access the wp login page using new admin slug even admin is already logged in
2
  Contributors:india-web-developer
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
  Tags: Protect WP-Admin,wp-admin,Protect wordpress admin,Secure Admin,Admin,Scure Wordpress Admin,Rename Admin URL, Rename Wordpress Admin URL,Change wp-admin url,Change Admin URL,Change Admin Path,Restrict wp-admin
5
+ Requires at least: 4.0
6
+ Tested up to: 4.8
7
+ Stable tag: 2.6
8
 
9
  Protect Your Website Admin Against Hackers & Modify Login Page Design
10
 
118
 
119
  == Changelog ==
120
 
121
+ = 2.6 =
122
+ * Tested with new wordpress version 4.8
123
+
124
  = 2.5 =
125
  * Fixed links issues on login, forget and register page for all language
126
  * Fixed access the wp login page using new admin slug even admin is already logged in