[wp-trac] [WordPress Trac] #56372: unexpected behavior user.php wp_update_user() detects change in password when there is no change

WordPress Trac noreply at wordpress.org
Mon Aug 15 09:32:42 UTC 2022


#56372: unexpected behavior user.php wp_update_user() detects change in password
when there is no change
--------------------------+------------------------------
 Reporter:  HamishAhern   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  6.0
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by sajjad67):

 * keywords:  2nd-opinion needs-design =>
 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Hi @HamishAhern

 Welcome to the trac! With a fresh WP installation i can confirm that it's
 not a bug or auto triggering issue! I think any of your plugin / theme is
 updating the user_pass or something.

 As @SergeyBiryukov already said...

 **It looks like if the password is not intended to be changed, it should
 not be passed to wp_update_user() at all.**

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


More information about the wp-trac mailing list