[wp-trac] [WordPress Trac] #22114: Propagating password on change

WordPress Trac noreply at wordpress.org
Thu Aug 14 12:41:35 UTC 2025


#22114: Propagating password on change
-------------------------------------------------+-------------------------
 Reporter:  ChloeD                               |       Owner:
                                                 |  davidbaumwald
     Type:  feature request                      |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  Users                                |     Version:  3.4.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by davidbaumwald):

 @dd32 Since there is no "old" data for a user on initial creation, I see 3
 options:

 1. Update the docblock [https://core.trac.wordpress.org/browser/trunk/src
 /wp-includes/pluggable.php#L3029 here] to accept either `false`(which
 would indicate there was no previous user data) or a `WP_User`.
 1. Pass an empty `WP_User` object, or
 1. Pass the exact same, new `WP_User` object from the line above.

 LMK what you think and if you see another, better option.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/22114#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list