Make WordPress Core

Ticket #64316: 64316.patch

File 64316.patch, 614 bytes (added by pratiklondhe, 7 months ago)

Patch for removing login url from the new user email

  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index ca85a85e4e..b0ecf55e3d 100644
    a b if ( ! function_exists( 'wp_new_user_notification' ) ) : 
    23812381                 */
    23822382                $message .= network_site_url( 'wp-login.php?login=' . rawurlencode( $user->user_login ) . "&key=$key&action=rp", 'login' ) . "\r\n\r\n";
    23832383
    2384                 $message .= wp_login_url() . "\r\n";
    2385 
    23862384                $wp_new_user_notification_email = array(
    23872385                        'to'      => $user->user_email,
    23882386                        /* translators: Login details notification email subject. %s: Site title. */