[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:24:15 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
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52650" 52650]:
{{{
#!CommitTicketReference repository="" revision="52650"
Users: Return a `WP_Error` from `wp_insert_user()` if the `user_url` field
is too long.
The `user_url` database field only allows up to 100 characters, and if the
value is longer than that, the function should return a proper error
message instead of silently failing.
This complements similar checks for `user_login` and `user_nicename`
fields.
Follow-up to [45], [1575], [32299], [34218], [34626].
Props mkox, sabernhardt, tszming, SergeyBiryukov.
Fixes #44107.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44107#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list