Changeset 31658
- Timestamp:
- 03/07/2015 05:59:17 AM (10 years ago)
- Location:
- trunk/src/wp-admin/network
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/index.php
r27469 r31658 18 18 19 19 if ( ! current_user_can( 'manage_network' ) ) 20 wp_die( __( 'You do not have permission to access this page.' ) );20 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 21 21 22 22 $title = __( 'Dashboard' ); -
trunk/src/wp-admin/network/settings.php
r31517 r31658 18 18 19 19 if ( ! current_user_can( 'manage_network_options' ) ) 20 wp_die( __( 'You do not have permission to access this page.' ) );20 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 21 21 22 22 $title = __( 'Network Settings' ); -
trunk/src/wp-admin/network/site-info.php
r31517 r31658 41 41 $details = get_blog_details( $id ); 42 42 if ( !can_edit_network( $details->site_id ) ) 43 wp_die( __( 'You do not have permission to access this page.' ) );43 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 44 44 45 45 $parsed = parse_url( $details->siteurl ); -
trunk/src/wp-admin/network/site-settings.php
r31517 r31658 41 41 $details = get_blog_details( $id ); 42 42 if ( !can_edit_network( $details->site_id ) ) 43 wp_die( __( 'You do not have permission to access this page.' ) );43 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 44 44 45 45 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/site-themes.php
r31200 r31658 58 58 $details = get_blog_details( $id ); 59 59 if ( !can_edit_network( $details->site_id ) ) 60 wp_die( __( 'You do not have permission to access this page.' ) );60 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 61 61 62 62 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/site-users.php
r31517 r31658 51 51 $details = get_blog_details( $id ); 52 52 if ( ! can_edit_network( $details->site_id ) ) 53 wp_die( __( 'You do not have permission to access this page.' ) );53 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 54 54 55 55 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/sites.php
r31200 r31658 15 15 16 16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( 'You do not have permission to access this page.' ) );17 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 18 18 19 19 $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); … … 98 98 case 'deleteblog': 99 99 if ( ! current_user_can( 'delete_sites' ) ) 100 wp_die( __( 'You do not have permission to access this page.' ) );100 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 101 101 102 102 $updated_action = 'not_deleted'; -
trunk/src/wp-admin/network/upgrade.php
r30029 r31658 37 37 38 38 if ( ! current_user_can( 'manage_network' ) ) 39 wp_die( __( 'You do not have permission to access this page.' ) );39 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 40 40 41 41 echo '<div class="wrap">'; -
trunk/src/wp-admin/network/user-new.php
r31517 r31658 34 34 check_admin_referer( 'add-user', '_wpnonce_add-user' ); 35 35 if ( ! current_user_can( 'manage_network_users' ) ) 36 wp_die( __( 'You do not have permission to access this page.' ) );36 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 37 37 38 38 if ( ! is_array( $_POST['user'] ) ) -
trunk/src/wp-admin/network/users.php
r31656 r31658 15 15 16 16 if ( ! current_user_can( 'manage_network_users' ) ) 17 wp_die( __( 'You do not have permission to access this page.' ) );17 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 18 18 19 19 function confirm_delete_users( $users ) { … … 124 124 case 'deleteuser': 125 125 if ( ! current_user_can( 'manage_network_users' ) ) 126 wp_die( __( 'You do not have permission to access this page.' ) );126 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 127 127 128 128 check_admin_referer( 'deleteuser' ); … … 145 145 case 'allusers': 146 146 if ( !current_user_can( 'manage_network_users' ) ) 147 wp_die( __( 'You do not have permission to access this page.' ) );147 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 148 148 149 149 if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) { … … 158 158 case 'delete': 159 159 if ( ! current_user_can( 'delete_users' ) ) 160 wp_die( __( 'You do not have permission to access this page.' ) );160 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 161 161 $title = __( 'Users' ); 162 162 $parent_file = 'users.php'; … … 207 207 check_admin_referer( 'ms-users-delete' ); 208 208 if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) ) 209 wp_die( __( 'You do not have permission to access this page.' ) );209 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 210 210 211 211 if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.