diff --git a/wp-includes/user.php b/wp-includes/user.php
index c234c495dfe..d2e243df0e9 100644
a
|
b
|
function wp_update_user( $userdata ) { |
2767 | 2767 | $current_user = wp_get_current_user(); |
2768 | 2768 | if ( $current_user->ID === $user_id ) { |
2769 | 2769 | if ( isset( $plaintext_pass ) ) { |
| 2770 | // Call password_updated to allow third party auth systems to update user password (see trac ticket #22114) |
| 2771 | do_action( 'password_updated', $user_id, $plaintext_pass ); |
| 2772 | |
2770 | 2773 | wp_clear_auth_cookie(); |
2771 | 2774 | |
2772 | 2775 | /* |