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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-13 21:55:44 +00:00
parent 44524d6c3c
commit 6d7b6b8e79
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.') );
}
/**