diff --git a/init.php b/init.php index cafae69..9f8142f 100644 --- a/init.php +++ b/init.php @@ -5,13 +5,13 @@ * Description: This plugin provides the ability to disable specific user accounts. * Version: 1.0.5 * Author: Jared Atchison - * Author URI: http://jaredatchison.com + * Author URI: http://jaredatchison.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -43,7 +43,7 @@ function __construct() { add_action( 'wp_login', array( $this, 'user_login' ), 10, 2 ); add_action( 'manage_users_custom_column', array( $this, 'manage_users_column_content' ), 10, 3 ); add_action( 'admin_footer-users.php', array( $this, 'manage_users_css' ) ); - + // Filters add_filter( 'login_message', array( $this, 'user_login_message' ) ); add_filter( 'manage_users_columns', array( $this, 'manage_users_columns' ) ); @@ -73,19 +73,19 @@ public function use_profile_field( $user ) { if ( !current_user_can( 'edit_users' ) ) return; ?> - - - - - - - -
- - - ID ) ); ?> /> - -
+ + + + + + + +
+ + + ID ) ); ?> /> + +
ID, 'ja_disable_user', true ); - + // Is the use logging in disabled? if ( $disabled == '1' ) { // Clear cookies, a.k.a log user out @@ -152,7 +152,7 @@ public function user_login( $user_login, $user = null ) { public function user_login_message( $message ) { // Show the error message if it seems to be a disabled user - if ( isset( $_GET['disabled'] ) && $_GET['disabled'] == 1 ) + if ( isset( $_GET['disabled'] ) && $_GET['disabled'] == 1 ) $message = '
' . apply_filters( 'ja_disable_users_notice', __( 'Account disabled', 'ja_disable_users' ) ) . '
'; return $message; @@ -193,7 +193,7 @@ public function manage_users_column_content( $empty, $column_name, $user_ID ) { * Specifiy the width of our custom column * * @since 1.0.3 - */ + */ public function manage_users_css() { echo ''; }