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:
parent
0f51431087
commit
3f48304cc8
@ -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
Block a user