Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#60820 assigned enhancement

Improve wording of the 'Login Details' mail

Reported by: pixelverbieger's profile pixelverbieger Owned by: marybaum's profile marybaum
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Text Changes Keywords: needs-copy-review reporter-feedback
Focuses: Cc:

Description

When creating a new user (as admin), they receive a very short e-mail in which a user name and a link are simply sent without comment.

I would like the text of this e-mail to be a little more informative.

The password reset emails are a good example. There we write "Someone has requested a password reset for the following account", state the site name, the user name and then write the link.

The text of the login detail mail could read:

"Someone has created an account for you in their website foo.com.
Your username is foo.name.
To set your password, visit the following address: ..."

Change History (4)

#1 @marybaum
2 months ago

  • Keywords needs-copy-review added
  • Owner set to marybaum
  • Status changed from new to assigned

Since this is a copy enhancement, I’ll be the owner. And though it’s technically login/registration, we’re actually adding help text.

Unless someone with better ideas has another thought. ;)

#2 @kebbet
2 months ago

  • Keywords reporter-feedback added

@pixelverbieger Can you provide exact string of current message so it's easier to find the source? Thanks!

#3 @pixelverbieger
2 months ago

The current message string is
'To set your password, visit the following address:'

Located in the file
/wp-includes/pluggable.php:2226

<?php
        $message  = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n";
        $message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n";
        $message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n";

        $message .= wp_login_url() . "\r\n";

The whole 'unit' begins in line 2202

#4 @pixelverbieger
2 months ago

  • Component changed from Login and Registration to Text Changes
Note: See TracTickets for help on using tickets.