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:
parent
44524d6c3c
commit
6d7b6b8e79
|
@ -98,6 +98,8 @@ if ( !$user_id ) {
|
|||
} else {
|
||||
wp_die(__('Invalid user ID.'));
|
||||
}
|
||||
} elseif ( !get_userdata($user_id) ) {
|
||||
wp_die( __('Invalid user ID.') );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue