Update wp_die() calls modified in [31658] to use shorthand calling style.

see #31422.


git-svn-id: https://develop.svn.wordpress.org/trunk@32152 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2015-04-20 03:26:24 +00:00
parent 3c28d7b1f6
commit 17d6534bb1
10 changed files with 15 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
if ( ! current_user_can( 'manage_network_users' ) )
wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
wp_die( __( 'You do not have permission to access this page.' ), 403 );
function confirm_delete_users( $users ) {
$current_user = wp_get_current_user();
@@ -127,7 +127,7 @@ if ( isset( $_GET['action'] ) ) {
switch ( $_GET['action'] ) {
case 'deleteuser':
if ( ! current_user_can( 'manage_network_users' ) )
wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
wp_die( __( 'You do not have permission to access this page.' ), 403 );
check_admin_referer( 'deleteuser' );
@@ -148,7 +148,7 @@ if ( isset( $_GET['action'] ) ) {
case 'allusers':
if ( !current_user_can( 'manage_network_users' ) )
wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
wp_die( __( 'You do not have permission to access this page.' ), 403 );
if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
check_admin_referer( 'bulk-users-network' );
@@ -161,7 +161,7 @@ if ( isset( $_GET['action'] ) ) {
switch ( $doaction ) {
case 'delete':
if ( ! current_user_can( 'delete_users' ) )
wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
wp_die( __( 'You do not have permission to access this page.' ), 403 );
$title = __( 'Users' );
$parent_file = 'users.php';
require_once( ABSPATH . 'wp-admin/admin-header.php' );
@@ -210,7 +210,7 @@ if ( isset( $_GET['action'] ) ) {
case 'dodelete':
check_admin_referer( 'ms-users-delete' );
if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) )
wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
wp_die( __( 'You do not have permission to access this page.' ), 403 );
if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
foreach ( $_POST['blog'] as $id => $users ) {