| @@ 77-83 (lines=7) @@ | ||
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | if ( is_multisite() && ! is_super_admin() && 'update' != $action ) { |
|
| 78 | wp_die( |
|
| 79 | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
|
| 80 | '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', |
|
| 81 | 403 |
|
| 82 | ); |
|
| 83 | } |
|
| 84 | ||
| 85 | $whitelist_options = array( |
|
| 86 | 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG' ), |
|
| @@ 131-137 (lines=7) @@ | ||
| 128 | } |
|
| 129 | ||
| 130 | // If the user doesn't already belong to the blog, bail. |
|
| 131 | if ( is_multisite() && !is_user_member_of_blog( $id ) ) { |
|
| 132 | wp_die( |
|
| 133 | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
|
| 134 | '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', |
|
| 135 | 403 |
|
| 136 | ); |
|
| 137 | } |
|
| 138 | ||
| 139 | $user = get_userdata( $id ); |
|
| 140 | $user->set_role( $role ); |
|