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
This commit is contained in:
Jeremy Felt 2016-09-27 15:26:21 +00:00
parent a1e9fbfc14
commit 4799f61d23

View File

@ -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';