Make WordPress Core

Ticket #40557: 40557.diff

File 40557.diff, 612 bytes (added by Presskopp, 8 years ago)
  • wp-admin/network/sites.php

     
    123123
    124124                case 'deleteblog':
    125125                        if ( ! current_user_can( 'delete_sites' ) )
    126                                 wp_die( __( 'Sorry, you are not allowed to access this page.' ), '', array( 'response' => 403 ) );
     126                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    127127
    128128                        $updated_action = 'not_deleted';
    129129                        if ( $id != '0' && $id != get_network()->site_id && current_user_can( 'delete_site', $id ) ) {