You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multisite: Improve messaging for previously activated users.
Ensure activation of a site is not attempted multiple times and users are shown the correct message if they follow the link a second time.
Merges [44021] to the 4.9 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44024 602fd350-edb4-49c9-b593-d223f7449a82
<h2><?php_e('Your account is now active!'); ?></h2>
100
-
<?php
101
-
echo'<p class="lead-in">';
102
-
if ( $signup->domain . $signup->path == '' ) {
103
-
printf(
104
-
/* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
105
-
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
106
-
network_site_url( 'wp-login.php', 'login' ),
107
-
$signup->user_login,
108
-
$signup->user_email,
109
-
wp_lostpassword_url()
110
-
);
111
-
} else {
112
-
printf(
113
-
/* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */
114
-
__( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
<h2><?php_e( 'Your account is now active!' ); ?></h2>
139
+
<?php
140
+
echo'<p class="lead-in">';
141
+
if ( $signup->domain . $signup->path == '' ) {
142
+
printf(
143
+
/* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
144
+
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
145
+
network_site_url( 'wp-login.php', 'login' ),
146
+
$signup->user_login,
147
+
$signup->user_email,
148
+
wp_lostpassword_url()
149
+
);
122
150
} else {
123
-
?>
124
-
<h2><?php_e( 'An error occurred during the activation' ); ?></h2>
125
-
<p><?phpecho$result->get_error_message(); ?></p>
126
-
<?php
151
+
printf(
152
+
/* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */
153
+
__( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
0 commit comments