mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -168,7 +168,7 @@ function confirm_delete_users( $users ) {
|
||||
global $current_user;
|
||||
if ( !is_array( $users ) )
|
||||
return false;
|
||||
|
||||
|
||||
screen_icon('tools');
|
||||
?>
|
||||
<h2><?php esc_html_e('Users'); ?></h2>
|
||||
@@ -183,13 +183,13 @@ function confirm_delete_users( $users ) {
|
||||
foreach ( ( $allusers = (array) $_POST['allusers'] ) as $key => $val ) {
|
||||
if ( $val != '' && $val != '0' ) {
|
||||
$delete_user = new WP_User( $val );
|
||||
|
||||
|
||||
if ( in_array( $delete_user->user_login, $site_admins ) )
|
||||
wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a network admnistrator.' ), $delete_user->user_login ) );
|
||||
|
||||
|
||||
echo "<input type='hidden' name='user[]' value='{$val}'/>\n";
|
||||
$blogs = get_blogs_of_user( $val, true );
|
||||
|
||||
|
||||
if ( !empty( $blogs ) ) {
|
||||
echo '<p><strong>' . sprintf( __( 'Sites from %s:' ), $delete_user->user_login ) . '</strong></p>';
|
||||
foreach ( (array) $blogs as $key => $details ) {
|
||||
|
||||
Reference in New Issue
Block a user