diff -ruN wordpress.orig/wp-admin/includes/user.php wordpress/wp-admin/includes/user.php
|
old
|
new
|
|
| 39 | 39 | if ( isset( $_POST['pass2'] )) |
| 40 | 40 | $pass2 = $_POST['pass2']; |
| 41 | 41 | |
| | 42 | if (get_magic_quotes_gpc()) { |
| | 43 | $pass1 = stripslashes($pass1); |
| | 44 | $pass2 = stripslashes($pass2); |
| | 45 | } |
| | 46 | |
| 42 | 47 | if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) { |
| 43 | 48 | if( $user_id != $current_user->id || $wp_roles->role_objects[$_POST['role']]->has_cap( 'edit_users' )) |
| 44 | 49 | $user->role = $_POST['role']; |
diff -ruN wordpress.orig/wp-includes/user.php wordpress/wp-includes/user.php
|
old
|
new
|
|
| 19 | 19 | else |
| 20 | 20 | $credentials['remember'] = false; |
| 21 | 21 | |
| | 22 | if ( get_magic_quotes_gpc() ) |
| | 23 | $credentials['user_password'] = stripslashes($credentials['user_password']); |
| | 24 | |
| 22 | 25 | do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); |
| 23 | 26 | |
| 24 | 27 | // If no credential info provided, check cookie. |