[wp-trac] [WordPress Trac] #39311: New user activation welcome page links to the wrong site
WordPress Trac
noreply at wordpress.org
Thu Dec 22 19:45:44 UTC 2016
#39311: New user activation welcome page links to the wrong site
-------------------------------------+------------------------------
Reporter: tmoore41 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: multisite
-------------------------------------+------------------------------
Comment (by Ipstenu):
Okay, NOW we're making progress!
You have a heavily customized install :) That's important for us to know
to debug.
The main site (example.com) is meant to be a publicly viewable site.
Obviously there are ways around it, like WordPress.com (not sure how they
did it TBH). But by making it so example.com is NOT accessible at all,
that's why this happened. If it was, just as a landing page or what have
you, it should properly redirect people where they need to go.
> All I am concerned about here are the links on the welcome page. It
seems to be an artificial restriction
> that I must have have a publicly accessible main site so that magic
redirection works, when it is trivially
> easy to change the welcome page to avoid this. Honestly, what is the
principle behind this? Why does
> magic redirection have to be used in this case, when it is so easy to
avoid?
You're falling to the original intent of WordPress Multisite, which was to
manage a network of related, but not fully interconnected sites. That's
why knowing the history of a thing helps us debug and why I was digging
into the history of what YOU are doing. :) With the right information, we
can understand the real problem based on your real intent.
So!
Why is yours breaking?
Because your main site isn't 'not accessible to login' but 'not accessible
AT ALL.' Meaning, as I understand it, if I went to your example.com, I
would be blocked.
You can use
https://developer.wordpress.org/reference/hooks/wpmu_signup_user_notification_email/
to rewrite the email so it links to the per-site :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39311#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list