Make WordPress Core

Ticket #57164: 57164.diff

File 57164.diff, 835 bytes (added by roytanck, 19 months ago)

Use self_admin_url instead of admin_url when constructing the email confirmation URL.

  • src/wp-includes/user.php

     
    37103710                $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );
    37113711
    37123712                $content = str_replace( '###USERNAME###', $current_user->user_login, $content );
    3713                 $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'profile.php?newuseremail=' . $hash ) ), $content );
     3713                $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail=' . $hash ) ), $content );
    37143714                $content = str_replace( '###EMAIL###', $_POST['email'], $content );
    37153715                $content = str_replace( '###SITENAME###', $sitename, $content );
    37163716                $content = str_replace( '###SITEURL###', home_url(), $content );