Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#21439 closed defect (bug) (fixed)

Correct wp_update_user() @return value

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

Description

wp_update_user() calls wp_insert_user(), which returns a WP_Error object on failure:
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/user.php#L1249

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

#1 @ryan
14 years ago

  • Owner set to ryan
  • Resolutionfixed
  • Status newclosed

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.