Skip to content

Commit cd441a6

Browse files
committed
Notifications: Remove the username from the new user notification email.
Removes the username from the "Login Details" email sent to a user when their account is created (`wp_new_user_notification()`). Props masteradhoc, cweiske. Fixes #63085. git-svn-id: https://develop.svn.wordpress.org/trunk@62590 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d4086af commit cd441a6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/wp-includes/pluggable.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,9 +2372,7 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
23722372

23732373
$switched_locale = switch_to_user_locale( $user_id );
23742374

2375-
/* translators: %s: User login. */
2376-
$message = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n";
2377-
$message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n";
2375+
$message = __( 'To set your password, visit the following address:' ) . "\r\n\r\n";
23782376

23792377
/*
23802378
* Since some user login names end in a period, this could produce ambiguous URLs that

0 commit comments

Comments
 (0)