[wp-trac] [WordPress Trac] #53109: wp_insert_user should return a WP_Error when passing a too long first_name parameter (was: wp_insert_user return 0)

WordPress Trac noreply at wordpress.org
Thu Apr 29 09:13:10 UTC 2021


#53109: wp_insert_user should return a WP_Error when passing a too long first_name
parameter
-----------------------------+------------------------------
 Reporter:  superpuperlesha  |       Owner:  audrasjb
     Type:  defect (bug)     |      Status:  reviewing
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Users            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+------------------------------
Changes (by audrasjb):

 * owner:  (none) => audrasjb
 * status:  new => reviewing
 * focuses:  coding-standards =>
 * version:  5.7 =>


Comment:

 Hi, welcome to WordPress Trac @superpuperlesha and thank you for the
 ticket,

 Looking at a glance, wp_insert_user should return WP_Error or create the
 user without this parameter. Self-assigning the ticket for further
 investigation.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53109#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list