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

WordPress Trac noreply at wordpress.org
Thu Apr 29 22:55:35 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:
-----------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:3 audrasjb]:
 > I believe it's more related to the fact that `display_name` is based on
 `first_name`/`last_name` metadata.

 Ah, good point.

 > For the moment, I wasn't able to find where this 250 char limit is set.
 @SergeyBiryukov do you have any clue?

 I think it's in the [source:tags/5.7.1/src/wp-
 admin/includes/schema.php?marks=201,219#L189 database schema]:
 `display_name varchar(250) NOT NULL default ''`.

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


More information about the wp-trac mailing list