97 | | 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() ); |
| 97 | $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() ); |
99 | | 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() ); |
| 99 | $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() ); |
119 | | <?php if ( $url && $url != network_home_url( '', 'http' ) ) : |
120 | | switch_to_blog( (int) $result['blog_id'] ); |
121 | | $login_url = wp_login_url(); |
122 | | restore_current_blog(); |
123 | | ?> |
124 | | <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, esc_url( $login_url ) ); ?></p> |
125 | | <?php else: ?> |
126 | | <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> |
127 | | <?php endif; |
| 131 | if ( $url && $url != network_home_url( '', 'http' ) ) { |
| 132 | $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>"; |
| 133 | } else { |
| 134 | $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>"; |
| 135 | } |
| 136 | /** |
| 137 | * Filter the activation success message |
| 138 | * |
| 139 | * @since 4.2 |
| 140 | * |
| 141 | * @param string $message |
| 142 | * @param string $url, site url |
| 143 | * @param object $user, WP_User object |
| 144 | * @param array $result, An array containing information about the activated user and/or blog |
| 145 | */ |
| 146 | echo apply_filters ( 'signup_activation_success', $message, $url, $user, $result ); |