Remove duplicate current_user_can() check.

git-svn-id: https://develop.svn.wordpress.org/trunk@12907 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-01-31 11:36:58 +00:00
parent 0f51431087
commit 3f48304cc8
1 changed files with 0 additions and 3 deletions

View File

@ -39,9 +39,6 @@ Please click the following link to activate your user account:
if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) {
check_admin_referer('add-user');
if ( ! current_user_can('create_users') )
wp_die(__('You can’t create users.'));
if ( !is_multisite() ) {
$user_id = add_user();