-
Notifications
You must be signed in to change notification settings - Fork 11
/
activate-error.php
28 lines (21 loc) · 1.69 KB
/
activate-error.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
global $gw_activate_template;
$result = $gw_activate_template->result;
// if the blog is already active or if the blog is taken, display respective messages
if ( $gw_activate_template->is_blog_already_active( $result ) || $gw_activate_template->is_blog_taken( $result ) ):
$signup = $result->get_error_data();
?>
<h2><?php _e('Your account is now active!'); ?></h2>
<p class="lead-in">
<?php
if ( $signup->domain . $signup->path == '' ) {
printf( __( '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>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
} else {
printf( __( 'Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of “%3$s”. Please check your email inbox at %4$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="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
}
?>
</p>
<?php else: ?>
<h2><?php _e('An error occurred during the activation'); ?></h2>
<p><?php echo $result->get_error_message(); ?></p>
<?php endif; ?>