Changeset 915947
- Timestamp:
- 05/17/2014 03:19:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
block-default-login-attempts/trunk/block-default-login-attempts.php
r915935 r915947 3 3 Plugin Name: Block Default Login Attempts 4 4 Description: Completely block default admin user login attempts in WordPress. 5 Version: 1. 0.05 Version: 1.1.0 6 6 Author: Ben Yates 7 7 */ … … 71 71 } 72 72 73 if ((defined('DOING_AJAX') and DOING_AJAX) or (defined('DOING_CRON') and DOING_CRON)) return; 74 75 if (!function_exists('bdla_admin_notices')) { 76 function bdla_admin_notices() { 77 $user = get_user_by('login', 'admin'); 78 if (empty($user) or empty($user->ID)) return; 79 ?> 80 <div class="error"> 81 <p> 82 The default user "admin" still exists. Either replace it, or 83 deactivate the plugin "Block Default Login Attempts" until you 84 do so. Otherwise, you may not be able to log in again! 85 </p> 86 </div> 87 <?php 88 } 89 add_action('admin_notices', 'bdla_admin_notices'); 90 } 91 73 92 ?>
Note: See TracChangeset
for help on using the changeset viewer.