WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/31/2010 11:36:58 AM (12 years ago)
Author:
dd32
Message:

Remove duplicate current_user_can() check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r12906 r12907  
    3939if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) {
    4040    check_admin_referer('add-user');
    41 
    42     if ( ! current_user_can('create_users') )
    43         wp_die(__('You can’t create users.'));
    4441
    4542    if ( !is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.