diff --git wp-activate.php wp-activate.php
index b13279a..499a4e5 100644
|
|
get_header( 'wp-activate' ); |
125 | 125 | <?php |
126 | 126 | } |
127 | 127 | } else { |
128 | | $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : ''; |
| 128 | $url = isset( $result['meta']['add_to_blog'] ) ? get_home_url( (int) $result['meta']['add_to_blog'] ) : ''; |
129 | 129 | $user = get_userdata( (int) $result['user_id'] ); |
130 | 130 | ?> |
131 | 131 | <h2><?php _e('Your account is now active!'); ?></h2> |
… |
… |
get_header( 'wp-activate' ); |
136 | 136 | </div> |
137 | 137 | |
138 | 138 | <?php if ( $url && $url != network_home_url( '', 'http' ) ) : |
139 | | switch_to_blog( (int) $result['blog_id'] ); |
| 139 | switch_to_blog( (int) $result['meta']['add_to_blog'] ); |
140 | 140 | $login_url = wp_login_url(); |
141 | 141 | restore_current_blog(); |
142 | 142 | ?> |