Make WordPress Core

Ticket #22114: 22114.diff

File 22114.diff, 548 bytes (added by chriscct7, 6 months ago)
  • wp-includes/user.php

    diff --git a/wp-includes/user.php b/wp-includes/user.php
    index c234c495dfe..d2e243df0e9 100644
    a b function wp_update_user( $userdata ) { 
    27672767        $current_user = wp_get_current_user();
    27682768        if ( $current_user->ID === $user_id ) {
    27692769                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                       
    27702773                        wp_clear_auth_cookie();
    27712774
    27722775                        /*