[wp-trac] [WordPress Trac] #44107: wp_insert_user should return WP_Error if user_url's length is too long

WordPress Trac noreply at wordpress.org
Mon Jan 31 18:06:05 UTC 2022


#44107: wp_insert_user should return WP_Error if user_url's length is too long
-------------------------------------------------+-------------------------
 Reporter:  tszming                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Users                                |     Version:  2.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |  administration
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 `mb_strlen()` is what was used for `user_login` and `user_nicename` in
 [34218]. I believe it is also the correct check for the `user_url` field,
 as the database field is limited to 100 characters, not 100 bytes.

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


More information about the wp-trac mailing list