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
if (isset($_GET['key']) && isset($_POST['key']) && $_GET['key'] !== $_POST['key']) {
30
-
wp_die(__('A key value mismatch has been detected. Please follow the link provided in your activation email.'), __('An error occurred during the activation'), 400);
31
-
} elseif (! empty($_GET['key'] ) ) {
32
-
$key = $_GET['key'];
33
-
} elseif (! empty($_POST['key'] ) ) {
34
-
$key = $_POST['key'];
26
+
if (isset($_GET['key']) && isset($_POST['key']) && $_GET['key'] !== $_POST['key']) {
27
+
wp_die(__('A key value mismatch has been detected. Please follow the link provided in your activation email.'), __('An error occurred during the activation'), 400);
if (is_wp_error($result) && in_array($result->get_error_code(), $valid_error_codes, true ) ) {
144
-
$signup = $result->get_error_data();
145
-
?>
146
-
<h2><?php_e('Your account is now active!'); ?></h2>
142
+
if (is_wp_error($result) && in_array($result->get_error_code(), $valid_error_codes, true)) {
143
+
$signup = $result->get_error_data();
144
+
?>
145
+
<h2><?php_e('Your account is now active!'); ?></h2>
147
146
<?php
148
-
echo'<p class="lead-in">';
149
-
if ( '' === $signup->domain . $signup->path ) {
150
-
printf(
151
-
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
152
-
__('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>.'),
/* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */
161
-
__('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>.'),
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
151
+
__('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>.'),
/* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */
160
+
__('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