| 43 | | if ( ! empty($_GET['key']) ) |
|---|
| 44 | | $key = $_GET['key']; |
|---|
| 45 | | else |
|---|
| 46 | | $key = $_POST['key']; |
|---|
| 47 | | |
|---|
| 48 | | $result = wpmu_activate_signup($key); |
|---|
| 49 | | if ( is_wp_error($result) ) { |
|---|
| 50 | | if ( 'already_active' == $result->get_error_code() ) |
|---|
| 51 | | echo __('The blog is already active. Please check your email inbox for your username, password, and login instructions.'); |
|---|
| 52 | | else |
|---|
| 53 | | echo $result->get_error_message(); |
|---|
| 54 | | } else { |
|---|
| 55 | | extract($result); |
|---|
| 56 | | $url = get_blogaddress_by_id($blog_id); |
|---|
| 57 | | $user = new WP_User($user_id); |
|---|
| | 54 | extract($result); |
|---|
| | 55 | $url = get_blogaddress_by_id($blog_id); |
|---|
| | 56 | $user = new WP_User($user_id); |
|---|
| 71 | | <h3 class="view"><?php printf(__('<a href="%1$s">View your site</a> or <a href="%2$s">Login</a>'), $url, $url . 'wp-login.php' ); ?></h3> |
|---|
| 72 | | <?php |
|---|
| | 70 | <?php if( $url != 'http://' . $current_site->domain . $current_site->path ) { ?> |
|---|
| | 71 | <p class="view"><?php printf(__('Your account is now activate. <a href="%1$s">View your site</a> or <a href="%2$s">Login</a>'), $url, $url . 'wp-login.php' ); ?></p> <?php |
|---|
| | 72 | } else { |
|---|
| | 73 | ?> <p class="view"><?php printf( __( 'Your account is now activate. <a href="%1$s">Login</a> or go back to the <a href="%2$s">homepage</a>.' ), 'http://' . $current_site->domain . $current_site->path . 'wp-login.php', 'http://' . $current_site->domain . $current_site->path ); ?></p> <?php |
|---|