Skip to content

Commit bf63c2e

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. Built from https://develop.svn.wordpress.org/trunk@61321 git-svn-id: https://core.svn.wordpress.org/trunk@60633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 5a91802 commit bf63c2e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

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,

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61320';
19+
$wp_version = '7.0-alpha-61321';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)