Opened 9 years ago
Closed 9 years ago
#33321 closed defect (bug) (fixed)
PHPDoc fix to wp_create_user
Reported by: | Ore4444 | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Users | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description
The line:
@return int The new user's ID.
in function wp_create_user in user.php should be changed to:
@return int|WP_Error The newly created user's ID or a WP_Error object if the user could not be created.
because wp_create_user inherits the return value from wp_insert_user.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Hi @Ore4444, welcome to Trac and thanks for the ticket!
Missed in [12468], partially fixed in [32637].
Would you like to try submitting a patch?