Cast to int. Props g30rg3x. fixes #8291

git-svn-id: http://svn.automattic.com/wordpress/trunk@9814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-20 17:26:52 +00:00
parent 4b5e8f8994
commit 87cf441193
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ case 'delete':
<?php <?php
$go_delete = false; $go_delete = false;
foreach ( (array) $userids as $id ) { foreach ( (array) $userids as $id ) {
$id = (int) $id;
$user = new WP_User($id); $user = new WP_User($id);
if ( $id == $current_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"; echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n";