From 03dd15bf7f18aa4fd9b8ca7306c8eaeb892997b1 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 27 Sep 2016 15:27:30 +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. Built from https://develop.svn.wordpress.org/trunk@38656 git-svn-id: http://core.svn.wordpress.org/trunk@38599 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/site-users.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/network/site-users.php b/wp-admin/network/site-users.php index 36ce31ae17..40a17d6053 100644 --- a/wp-admin/network/site-users.php +++ b/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'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8af91b35b0..c4549b15e3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.