[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 10:54:05 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 audrasjb):

 I found something interesting: it looks like the limit is at 250
 character. Also, I'm not sure it's really related to the `first_name` or
 `last_name` metadata.
 I believe it's more related to the fact that `display_name` is based on
 `first_name`/`last_name` metadata.

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

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


More information about the wp-trac mailing list