From 4799f61d23863164cff2eec20e276fa6635de54a Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 27 Sep 2016 15:26:21 +0000 Subject: [PATCH] Multisite: Replace `die()` with `wp_die()` in site users list table. `wp_die()` is available and appropriate when checking capabilities while processing list table actions. Props imath. Fixes 38151. git-svn-id: https://develop.svn.wordpress.org/trunk@38656 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/site-users.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/network/site-users.php b/src/wp-admin/network/site-users.php index 36ce31ae17..40a17d6053 100644 --- a/src/wp-admin/network/site-users.php +++ b/src/wp-admin/network/site-users.php @@ -117,8 +117,10 @@ if ( $action ) { break; case 'remove': - if ( ! current_user_can( 'remove_users' ) ) - die(__('You can’t remove users.')); + if ( ! current_user_can( 'remove_users' ) ) { + wp_die( __( 'You can’t remove users.' ) ); + } + check_admin_referer( 'bulk-users' ); $update = 'remove';