mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Cast to int. Props g30rg3x. fixes #8291
git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@9815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d61ecdbad8
commit
8a10888fe8
|
|
@ -128,6 +128,7 @@ case 'delete':
|
|||
<?php
|
||||
$go_delete = false;
|
||||
foreach ( (array) $userids as $id ) {
|
||||
$id = (int) $id;
|
||||
$user = new WP_User($id);
|
||||
if ( $id == $current_user->ID ) {
|
||||
echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user