Opened 3 years ago
Closed 3 years ago
#53627 closed defect (bug) (fixed)
Return earlier from wp_update_user() in case of error
Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
In wp_update_user()
, there's an is_wp_error()
check after the wp_insert_user()
call.
However, before an error is returned, some additional code runs to update the cookies if the password for the current user has changed.
If the wp_insert_user()
call resulted in an error, it seems better and more predictable to return it right away without any further actions.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 51398: