Remove duplicate current_user_can() check.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-01-31 11:36:58 +00:00
parent a950dbf3f6
commit 72a4e7a350
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();