96 | | 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() ); |
| 96 | $message .= sprintf( __('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() ); |
98 | | 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() ); |
| 98 | $message .= sprintf( __('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() ); |
113 | | <div id="signup-welcome"> |
114 | | <p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p> |
115 | | <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $result['password']; ?></p> |
116 | | </div> |
117 | | |
118 | | <?php if ( $url && $url != network_home_url( '', 'http' ) ) : ?> |
119 | | <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>'), $url, $url . 'wp-login.php' ); ?></p> |
120 | | <?php else: ?> |
121 | | <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?></p> |
122 | | <?php endif; |
| 127 | if ( $url && $url != network_home_url( '', 'http' ) ) { |
| 128 | $message .= "<p class='view'>" . sprintf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), $url, $url . 'wp-login.php' ) . "</p>"; |
| 129 | } else { |
| 130 | $message .= "<p class='view'>" . sprintf( __( 'Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url( 'wp-login.php', 'login' ), network_home_url() ) . "</p>"; |
| 131 | } |
| 132 | /** |
| 133 | * Filter the activation success message |
| 134 | * |
| 135 | * @since 4.2 |
| 136 | * |
| 137 | * @param string $message |
| 138 | * @param string $url, site url |
| 139 | * @param object $user, WP_User object |
| 140 | * @param array $result, An array containing information about the activated user and/or blog |
| 141 | */ |
| 142 | echo apply_filters ( 'signup_activation_success', $message, $url, $user, $result ); |