[wp-trac] [WordPress Trac] #33321: PHPDoc fix to wp_create_user

WordPress Trac noreply at wordpress.org
Mon Aug 10 11:57:57 UTC 2015

#33321: PHPDoc fix to wp_create_user
 Reporter:  Ore4444       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  4.2.4
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
 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.

Ticket URL: <https://core.trac.wordpress.org/ticket/33321>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list