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.

Built from https://develop.svn.wordpress.org/trunk@38656


git-svn-id: http://core.svn.wordpress.org/trunk@38599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-09-27 15:27:30 +00:00
parent 4a6f90db58
commit 03dd15bf7f
2 changed files with 5 additions and 3 deletions

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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38655';
$wp_version = '4.7-alpha-38656';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.