[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
Sat Jan 29 14:37:04 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):

 Replying to [comment:6 SergeyBiryukov]:
 > I think the check should run after the `pre_user_url` filter, to make
 sure the filtered value is still no longer than 100 characters. That would
 be consistent with the `mb_strlen( $user_login ) > 60` check, which runs
 after the `pre_user_login` filter, though not with the `mb_strlen(
 $user_nicename ) > 50` check, which runs ''before'' the
 `pre_user_nicename` filter for some reason. Let's address the latter in a
 new ticket.

 Follow-up: #54987.

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


More information about the wp-trac mailing list