Make WordPress Core

Ticket #38451: 38451.diff

File 38451.diff, 803 bytes (added by dave.pullig, 8 years ago)
  • ms.php

     
    388388                $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );
    389389
    390390                $content = str_replace( '###USERNAME###', $current_user->user_login, $content );
    391                 $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'profile.php?newuseremail='.$hash ) ), $content );
     391                $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail='.$hash ) ), $content );
    392392                $content = str_replace( '###EMAIL###', $_POST['email'], $content);
    393393                $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content );
    394394                $content = str_replace( '###SITEURL###', network_home_url(), $content );