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:
parent
4a6f90db58
commit
03dd15bf7f
|
@ -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';
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue