Make WordPress Core


Ignore:
Timestamp:
04/20/2015 03:26:24 AM (10 years ago)
Author:
nacin
Message:

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

see #31422.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/users.php

    r32116 r32152  
    1515
    1616if ( ! current_user_can( 'manage_network_users' ) )
    17     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     17    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    1818
    1919function confirm_delete_users( $users ) {
     
    128128        case 'deleteuser':
    129129            if ( ! current_user_can( 'manage_network_users' ) )
    130                 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     130                wp_die( __( 'You do not have permission to access this page.' ), 403 );
    131131
    132132            check_admin_referer( 'deleteuser' );
     
    149149        case 'allusers':
    150150            if ( !current_user_can( 'manage_network_users' ) )
    151                 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     151                wp_die( __( 'You do not have permission to access this page.' ), 403 );
    152152
    153153            if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
     
    162162                            case 'delete':
    163163                                if ( ! current_user_can( 'delete_users' ) )
    164                                     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     164                                    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    165165                                $title = __( 'Users' );
    166166                                $parent_file = 'users.php';
     
    211211            check_admin_referer( 'ms-users-delete' );
    212212            if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) )
    213                 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     213                wp_die( __( 'You do not have permission to access this page.' ), 403 );
    214214
    215215            if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.