Skip to content

Commit 77107c3

Browse files
Login and Registration: Remove redundant login URL at the end of new user notification.
This became unnecessary (and confusing) after the plaintext password was removed from the email, and the URL to set a new password was added directly above in WordPress 4.3. Follow-up to [2872], [8058], [10931], [33023]. Props clayray, manhphucofficial, pratiklondhe, johnbillion, SergeyBiryukov. Fixes #64316. git-svn-id: https://develop.svn.wordpress.org/trunk@61321 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3423501 commit 77107c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/wp-includes/pluggable.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,9 +2379,7 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
23792379
*
23802380
* @see https://core.trac.wordpress.org/tickets/42957
23812381
*/
2382-
$message .= network_site_url( 'wp-login.php?login=' . rawurlencode( $user->user_login ) . "&key=$key&action=rp", 'login' ) . "\r\n\r\n";
2383-
2384-
$message .= wp_login_url() . "\r\n";
2382+
$message .= network_site_url( 'wp-login.php?login=' . rawurlencode( $user->user_login ) . "&key=$key&action=rp", 'login' ) . "\r\n";
23852383

23862384
$wp_new_user_notification_email = array(
23872385
'to' => $user->user_email,

0 commit comments

Comments
 (0)