[wp-trac] [WordPress Trac] #57635: Check if empty user_nicename in the function wp_insert_user
WordPress Trac
noreply at wordpress.org
Wed Feb 8 19:28:16 UTC 2023
#57635: Check if empty user_nicename in the function wp_insert_user
-------------------------------------------------+-------------------------
Reporter: missveronicatv | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Users | Version: 6.1.1
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug needs- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Comment (by missveronicatv):
With {{{ $user_login }}} empty you will get {{{ $user_nicename }}} empty
too
{{{
$user_nicename = mb_substr( $user_login, 0, 50 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57635#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list