src/wp-admin/includes/dashboard.php 1 location
|
@@ 389-390 (lines=2) @@
|
386 |
|
$actions = array(); |
387 |
|
if ( current_user_can('create_sites') ) |
388 |
|
$actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __( 'Create a New Site' ) . '</a>'; |
389 |
|
if ( current_user_can('create_users') ) |
390 |
|
$actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __( 'Create a New User' ) . '</a>'; |
391 |
|
|
392 |
|
$c_users = get_user_count(); |
393 |
|
$c_blogs = get_blog_count(); |
src/wp-admin/user-new.php 1 location
|
@@ 114-120 (lines=7) @@
|
111 |
|
} elseif ( isset($_REQUEST['action']) && 'createuser' == $_REQUEST['action'] ) { |
112 |
|
check_admin_referer( 'create-user', '_wpnonce_create-user' ); |
113 |
|
|
114 |
|
if ( ! current_user_can( 'create_users' ) ) { |
115 |
|
wp_die( |
116 |
|
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
117 |
|
'<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', |
118 |
|
403 |
119 |
|
); |
120 |
|
} |
121 |
|
|
122 |
|
if ( ! is_multisite() ) { |
123 |
|
$user_id = edit_user(); |