Cast to int. Props g30rg3x. fixes #8291

git-svn-id: https://develop.svn.wordpress.org/trunk@9814 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-20 17:26:52 +00:00
parent 9b95f1a52e
commit af7246487e
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,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";