Changeset 32152
- Timestamp:
- 04/20/2015 03:26:24 AM (10 years ago)
- Location:
- trunk/src/wp-admin/network
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/index.php
r32116 r32152 18 18 19 19 if ( ! 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 ); 21 21 22 22 $title = __( 'Dashboard' ); -
trunk/src/wp-admin/network/settings.php
r32116 r32152 18 18 19 19 if ( ! 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 ); 21 21 22 22 $title = __( 'Network Settings' ); -
trunk/src/wp-admin/network/site-info.php
r32116 r32152 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.' ), '', array( 'response' => 403 ));43 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 44 44 45 45 $parsed = parse_url( $details->siteurl ); -
trunk/src/wp-admin/network/site-settings.php
r32116 r32152 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.' ), '', array( 'response' => 403 ));43 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 44 44 45 45 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/site-themes.php
r32116 r32152 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.' ), '', array( 'response' => 403 ));60 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 61 61 62 62 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/site-users.php
r32116 r32152 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.' ), '', array( 'response' => 403 ));53 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 54 54 55 55 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/sites.php
r32116 r32152 15 15 16 16 if ( ! 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 ); 18 18 19 19 $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); -
trunk/src/wp-admin/network/upgrade.php
r32116 r32152 37 37 38 38 if ( ! 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 ); 40 40 41 41 echo '<div class="wrap">'; -
trunk/src/wp-admin/network/user-new.php
r32116 r32152 33 33 if ( isset($_REQUEST['action']) && 'add-user' == $_REQUEST['action'] ) { 34 34 check_admin_referer( 'add-user', '_wpnonce_add-user' ); 35 35 36 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 ); 37 38 38 39 if ( ! is_array( $_POST['user'] ) ) -
trunk/src/wp-admin/network/users.php
r32116 r32152 15 15 16 16 if ( ! 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 ); 18 18 19 19 function confirm_delete_users( $users ) { … … 128 128 case 'deleteuser': 129 129 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 ); 131 131 132 132 check_admin_referer( 'deleteuser' ); … … 149 149 case 'allusers': 150 150 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 ); 152 152 153 153 if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) { … … 162 162 case 'delete': 163 163 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 ); 165 165 $title = __( 'Users' ); 166 166 $parent_file = 'users.php'; … … 211 211 check_admin_referer( 'ms-users-delete' ); 212 212 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 ); 214 214 215 215 if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.