Opened 5 years ago
Closed 5 years ago
#53627 closed defect (bug) (fixed)
Return earlier from wp_update_user() in case of error
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | Users | Version: | 4.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 51398: