@@ 209-212 (lines=4) @@ | ||
206 | if ( ! current_user_can( 'delete_users' ) ) |
|
207 | $errors = new WP_Error( 'edit_users', __( 'Sorry, you are not allowed to delete users.' ) ); |
|
208 | ||
209 | if ( empty($_REQUEST['users']) ) |
|
210 | $userids = array( intval( $_REQUEST['user'] ) ); |
|
211 | else |
|
212 | $userids = array_map( 'intval', (array) $_REQUEST['users'] ); |
|
213 | ||
214 | $users_have_content = false; |
|
215 | if ( $wpdb->get_var( "SELECT ID FROM {$wpdb->posts} WHERE post_author IN( " . implode( ',', $userids ) . " ) LIMIT 1" ) ) { |
|
@@ 350-353 (lines=4) @@ | ||
347 | if ( !current_user_can('remove_users') ) |
|
348 | $error = new WP_Error('edit_users', __('Sorry, you are not allowed to remove users.')); |
|
349 | ||
350 | if ( empty($_REQUEST['users']) ) |
|
351 | $userids = array(intval($_REQUEST['user'])); |
|
352 | else |
|
353 | $userids = $_REQUEST['users']; |
|
354 | ||
355 | include( ABSPATH . 'wp-admin/admin-header.php' ); |
|
356 | ?> |