Commit 75f4a09
committed
Users: Prevent creating of empty usernames after sanitization.
Introduces a check in `wp_insert_user()` to ensure the username doesn't have a length of zero after sanitization removes invalid characters.
Props kalpeshh, missveronicatv, rayhatron, rinkalpagdar, sergeybiryukov, thehercules.
Fixes #57635.
git-svn-id: https://develop.svn.wordpress.org/trunk@60288 602fd350-edb4-49c9-b593-d223f7449a821 parent ecd37b7 commit 75f4a09
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2286 | 2286 | | |
2287 | 2287 | | |
2288 | 2288 | | |
2289 | | - | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2290 | 2293 | | |
2291 | 2294 | | |
2292 | 2295 | | |
| |||
0 commit comments