Changeset 17432 for branches/3.1/wp-admin/users.php
- Timestamp:
- 02/09/2011 05:30:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-admin/users.php
r17366 r17432 48 48 case 'promote': 49 49 check_admin_referer('bulk-users'); 50 51 if ( ! current_user_can( 'promote_users' ) ) 52 wp_die( __( 'You can’t edit that user.' ) ); 50 53 51 54 if ( empty($_REQUEST['users']) ) { … … 353 356 if ( current_user_can( 'create_users' ) ) { ?> 354 357 <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 355 <?php } elseif ( current_user_can( 'promote_users' ) ) { ?>358 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 356 359 <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 357 360 <?php }
Note: See TracChangeset
for help on using the changeset viewer.