[resolved] Missing / in activation link email. (5 posts)

  1. Radices
    Posted 2 years ago #

    I've just set-up a MU with subdomains and in the activation email the link is missing a forward slash. I've hacked the ms-functions.php file to include a slash after {$path}

    Line 728 $activate_url = "http://{$domain}{$path}/wp-activate.php?key=$key"; // @todo use *_url() API

    Surely this is wrong (hacking core files) and can't be a bug as I cannot find any mentions online.


  2. It shouldn't be needed at all. Just like there isn't one between domain and path, your path should be putting that in.

    What's in your Path? Go to WP Dashboard -> Network -> Sites, click on edit site for a subsite.

  3. Radices
    Posted 2 years ago #

    It shows a / in the path field on the dashboard.

  4. Radices
    Posted 2 years ago #

    I was running 3.5 RC and it was indeed a bug in the ms-functions.php file.
    Line 545 $base = $current_site->path; was missing. Just installed the nightly build and all is well again. Thanks for the help.

  5. Right, so something is stripping it out. The / in Path is the $path variable, you see.

    What plugins are you using, and what theme is on your main site?

Topic Closed

This topic has been closed to new replies.

About this Topic