Changeset 35116
- Timestamp:
- 10/13/2015 02:47:09 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user-functions.php
r34965 r35116 1603 1603 $user = add_magic_quotes( $user ); 1604 1604 1605 if ( ! empty( $userdata['user_pass'])) {1605 if ( ! empty( $userdata['user_pass'] ) && $userdata['user_pass'] !== $user_obj->user_pass ) { 1606 1606 // If password is changing, hash it now 1607 1607 $plaintext_pass = $userdata['user_pass']; -
trunk/tests/phpunit/tests/user.php
r34859 r35116 955 955 wp_new_user_notification( $user, 'this_is_deprecated' ); 956 956 } 957 958 /** 959 * @ticket 28435 960 */ 961 function test_wp_update_user_no_change_pwd() { 962 $testuserid = 1; 963 $user = get_userdata( $testuserid ); 964 $pwd_before = $user->user_pass; 965 wp_update_user( $user ); 966 967 // Reload the data 968 $pwd_after = get_userdata( $testuserid )->user_pass; 969 $this->assertEquals( $pwd_before, $pwd_after ); 970 } 957 971 }
Note: See TracChangeset
for help on using the changeset viewer.