Die if invalid user ID passed to user-edit.php. fixes #7291

git-svn-id: https://develop.svn.wordpress.org/trunk@9135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-13 21:55:44 +00:00
parent be98f483cf
commit b0c463f3f9
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ if ( !$user_id ) {
} else {
wp_die(__('Invalid user ID.'));
}
} elseif ( !get_userdata($user_id) ) {
wp_die( __('Invalid user ID.') );
}
/**