Advertisement
Guest User

Patch to add password_updated

a guest
Oct 4th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.68 KB | None | 0 0
  1. chloe@ayodhya:~/opidev$ diff -uprN wordpress/wp-includes/user.php web/wp-includes/user.php
  2. --- wordpress/wp-includes/user.php      2012-04-27 17:57:51.000000000 +0200
  3. +++ web/wp-includes/user.php    2012-10-04 17:36:12.382154680 +0200
  4. @@ -1427,6 +1427,8 @@ function wp_update_user($userdata) {
  5.         $current_user = wp_get_current_user();
  6.         if ( $current_user->ID == $ID ) {
  7.                 if ( isset($plaintext_pass) ) {
  8. +      // call password_updated to reflect that change elsewhere if needed
  9. +      do_action('password_updated', $ID, $plaintext_pass);
  10.                         wp_clear_auth_cookie();
  11.                         wp_set_auth_cookie($ID);
  12.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement