Changeset 17136
- Timestamp:
- 12/24/2010 10:37:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-users.php
r17045 r17136 63 63 switch ( $action ) { 64 64 case 'newuser': 65 check_admin_referer( 'add-user', '_wpnonce_add-new-user' ); 65 66 $user = $_POST['user']; 66 67 if ( !is_array( $_POST['user'] ) || empty( $user['username'] ) || empty( $user['email'] ) ) { … … 81 82 82 83 case 'adduser': 84 check_admin_referer( 'add-user', '_wpnonce_add-user' ); 83 85 if ( !empty( $_POST['newuser'] ) ) { 84 86 $update = 'adduser'; … … 102 104 if ( !current_user_can('remove_users') ) 103 105 die(__('You can’t remove users.')); 104 106 check_admin_referer( 'bulk-users' ); 107 105 108 $update = 'remove'; 106 109 if ( isset( $_REQUEST['users'] ) ) { … … 119 122 120 123 case 'promote': 124 check_admin_referer( 'bulk-users' ); 121 125 $editable_roles = get_editable_roles(); 122 126 if ( empty( $editable_roles[$_REQUEST['new_role']] ) ) … … 259 263 </tr> 260 264 </table> 265 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 261 266 <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?> 262 267 </form> … … 294 299 </tr> 295 300 </table> 296 <?php wp_nonce_field( 'add-user', '_wpnonce_add- user' ) ?>301 <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ) ?> 297 302 <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?> 298 303 </form>
Note: See TracChangeset
for help on using the changeset viewer.