Use user ID for author permalink if sanitize_title returns an empty string. Bug 0000116.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bcf41e4fc9
commit
6815460232
|
@ -64,7 +64,7 @@ $new_user_login = $_POST['new_user_login'];
|
|||
$new_firstname = $_POST['new_firstname'];
|
||||
$new_lastname = $_POST['new_lastname'];
|
||||
$new_nickname = $_POST['new_nickname'];
|
||||
$new_nicename = sanitize_title($new_nickname);
|
||||
$new_nicename = sanitize_title($new_nickname, $user_id);
|
||||
$new_icq = $_POST['new_icq'];
|
||||
$new_aim = $_POST['new_aim'];
|
||||
$new_msn = $_POST['new_msn'];
|
||||
|
|
|
@ -70,7 +70,9 @@ case 'adduser':
|
|||
return false;
|
||||
}
|
||||
|
||||
$user_nicename = sanitize_title($user_nickname);
|
||||
$user_ID = $wpdb->get_var("SELECT ID FROM $wpdb->users ORDER BY ID DESC LIMIT 1") + 1;
|
||||
|
||||
$user_nicename = sanitize_title($user_nickname, $user_ID);
|
||||
$user_uri = preg_match('/^(https?|ftps?|mailto|news|gopher):/is', $user_uri) ? $user_uri : 'http://' . $user_uri;
|
||||
$now = gmdate('Y-m-d H:i:s');
|
||||
$new_users_can_blog = get_settings('new_users_can_blog');
|
||||
|
|
Loading…
Reference in New Issue