Make WordPress Core

Changeset 32152


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.

Location:
trunk/src/wp-admin/network
Files:
10 edited

Legend:

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

    r32116 r32152  
    1818
    1919if ( ! current_user_can( 'manage_network' ) )
    20     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     20    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    2121
    2222$title = __( 'Dashboard' );
  • trunk/src/wp-admin/network/settings.php

    r32116 r32152  
    1818
    1919if ( ! current_user_can( 'manage_network_options' ) )
    20     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     20    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    2121
    2222$title = __( 'Network Settings' );
  • trunk/src/wp-admin/network/site-info.php

    r32116 r32152  
    4141$details = get_blog_details( $id );
    4242if ( !can_edit_network( $details->site_id ) )
    43     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     43    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    4444
    4545$parsed = parse_url( $details->siteurl );
  • trunk/src/wp-admin/network/site-settings.php

    r32116 r32152  
    4141$details = get_blog_details( $id );
    4242if ( !can_edit_network( $details->site_id ) )
    43     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     43    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    4444
    4545$is_main_site = is_main_site( $id );
  • trunk/src/wp-admin/network/site-themes.php

    r32116 r32152  
    5858$details = get_blog_details( $id );
    5959if ( !can_edit_network( $details->site_id ) )
    60     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     60    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    6161
    6262$is_main_site = is_main_site( $id );
  • trunk/src/wp-admin/network/site-users.php

    r32116 r32152  
    5151$details = get_blog_details( $id );
    5252if ( ! can_edit_network( $details->site_id ) )
    53     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     53    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    5454
    5555$is_main_site = is_main_site( $id );
  • trunk/src/wp-admin/network/sites.php

    r32116 r32152  
    1515
    1616if ( ! current_user_can( 'manage_sites' ) )
    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
    1919$wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' );
  • trunk/src/wp-admin/network/upgrade.php

    r32116 r32152  
    3737
    3838if ( ! current_user_can( 'manage_network' ) )
    39     wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     39    wp_die( __( 'You do not have permission to access this page.' ), 403 );
    4040
    4141echo '<div class="wrap">';
  • trunk/src/wp-admin/network/user-new.php

    r32116 r32152  
    3333if ( isset($_REQUEST['action']) && 'add-user' == $_REQUEST['action'] ) {
    3434    check_admin_referer( 'add-user', '_wpnonce_add-user' );
     35
    3536    if ( ! current_user_can( 'manage_network_users' ) )
    36         wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     37        wp_die( __( 'You do not have permission to access this page.' ), 403 );
    3738
    3839    if ( ! is_array( $_POST['user'] ) )
  • 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.