Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#51781 new defect (bug)

Code not pulling website URL

Reported by: vejapixel's profile vejapixel Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5.3
Component: Users Keywords: needs-patch
Focuses: multisite Cc:

Description

Hello people,

I have activated the multisite network. And when a user signs up on one of the network’s sites (main site or subsite), that user receives an email with a confirmation link. After the user clicks on the confirmation link, he receives another email stating that his account is ok, and the signature of that email shows the code (###SITEURL###) that should call the URL of my site: https://prnt.sc/vjjaxz

Thank you!

Change History (3)

#1 @pbiron
4 years ago

  • Component changed from General to Users

It looks like you've changed the default text of the "new user" email (possibly via a plugin).

The default text is:

Howdy USERNAME,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME'

where, USERNAME, PASSWORD, LOGINLINK and SITE_NAME "placeholders" are substituted appropriately before the email is sent out.

That is, the ###SITEURL### "placeholder" isn't something that WordPress core uses...and hence, doesn't substitute.

Can you confirm whether you have changed the default text (e.g., in the Network Admin > Settings screen or via a plugin that you've installed)?

#2 follow-up: @vejapixel
4 years ago

OK, I found the place where I change this code ###SITEURL###: https://prnt.sc/vjp568

So, this site is not recognized by WordPress? What code is accepted to call the address of the website where the user registered?

Another thing...
I am using the "All In One WP Security" plugin and this plugin has a feature where you can customize the default login page link (wp-login.php).

Then, when a user signs up, they need to receive an email with the link to the personalized login page.

My site has an active multisite network, and when I register a user via the network (/wp-admin/network/user-new.php), the user receives an email with a link to confirm the registration, and when the user clicks on that link and he receives another email confirming his registration along with his password + the link the login page (personalized).

However, when I register a user directly on the individual site (main site or subsite - /wp-admin/user-new.php), the user receives the link for confirmation and after clicking on the link he receives another email with his password + the link the default login (wp-login.php): https://prnt.sc/vjpcg7
However, it is wrong, as the user must also receive the personalized login link.

I know it's a plugin feature, but I decided to inform you because maybe you have a solution to give me.

I have already contacted the plugin stating this problem: https://wordpress.org/support/topic/custom-login-url-is-not-sent-to-the-new-user/

#3 in reply to: ↑ 2 @dd32
3 years ago

Replying to vejapixel:

OK, I found the place where I change this code ###SITEURL###: https://prnt.sc/vjp568

So, this site is not recognized by WordPress? What code is accepted to call the address of the website where the user registered?

The ###SITEURL### 'code'/'placeholder' is not expected to exist within the field. The 'placeholders' which can be used in an email must match the default text that was within it.

Another thing...
I am using the ...

Trac is not a support avenue, for support requests please see the Support Forums.

I'm leaving this ticket open, as supporting ###SITEURL### within all of the user email functions would make sense, although might be better with a new ticket to 'standardise the placeholders between all custom email functions'.

Note: See TracTickets for help on using tickets.