Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#21439 closed defect (bug) (fixed)

Correct wp_update_user() @return value

Reported by: SergeyBiryukov Owned by: ryan
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Inline Docs Keywords: has-patch
Focuses: Cc:


wp_update_user() calls wp_insert_user(), which returns a WP_Error object on failure:

Attachments (1)

21439.patch (575 bytes) - added by SergeyBiryukov 3 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
3 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [21509]:

Update wp_update_user() phpdoc to reflect a possible return of WP_Error. Props SergeyBiryukov. fixes #21439

Note: See TracTickets for help on using tickets.