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:
parent
a950dbf3f6
commit
72a4e7a350
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue