Make WordPress Core

Ticket #24760: 24760.patch

File 24760.patch, 657 bytes (added by uglyrobot, 9 years ago)

Make new site activation email links consistent

  • wp-includes/ms-functions.php

     
    786786        }
    787787
    788788        // Send email with activation link.
    789         if ( !is_subdomain_install() || get_current_site()->id != 1 )
    790                 $activate_url = network_site_url("wp-activate.php?key=$key");
    791         else
    792                 $activate_url = "http://{$domain}{$path}wp-activate.php?key=$key"; // @todo use *_url() API
     789        $activate_url = network_site_url("wp-activate.php?key=$key");
    793790
    794791        $activate_url = esc_url($activate_url);
    795792        $admin_email = get_site_option( 'admin_email' );