diff --git a/wp-activate.php b/wp-activate.php
index 3258c07d32..3009db38d1 100644
a
|
b
|
add_action( 'wp_head', 'wpmu_activate_stylesheet' ); |
117 | 117 | add_action( 'wp_head', 'wp_sensitive_page_meta' ); |
118 | 118 | |
119 | 119 | get_header( 'wp-activate' ); |
| 120 | |
| 121 | $blog_details = get_blog_details(); |
120 | 122 | ?> |
121 | 123 | |
122 | 124 | <div id="signup-content" class="widecolumn"> |
… |
… |
get_header( 'wp-activate' ); |
124 | 126 | <?php if ( ! $key ) { ?> |
125 | 127 | |
126 | 128 | <h2><?php _e( 'Activation Key Required' ); ?></h2> |
127 | | <form name="activateform" id="activateform" method="post" action="<?php echo network_site_url( 'wp-activate.php' ); ?>"> |
| 129 | <form name="activateform" id="activateform" method="post" action="<?php echo network_site_url( $blog_details->path . 'wp-activate.php' ); ?>"> |
128 | 130 | <p> |
129 | 131 | <label for="key"><?php _e( 'Activation Key:' ); ?></label> |
130 | 132 | <br /><input type="text" name="key" id="key" value="" size="50" /> |
… |
… |
get_header( 'wp-activate' ); |
146 | 148 | printf( |
147 | 149 | /* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */ |
148 | 150 | __( '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>.' ), |
149 | | network_site_url( 'wp-login.php', 'login' ), |
| 151 | network_site_url( $blog_details->path . 'wp-login.php', 'login' ), |
150 | 152 | $signup->user_login, |
151 | 153 | $signup->user_email, |
152 | 154 | wp_lostpassword_url() |
… |
… |
get_header( 'wp-activate' ); |
155 | 157 | printf( |
156 | 158 | /* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */ |
157 | 159 | __( 'Your site at %1$s is active. You may now log in to your 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>.' ), |
158 | | sprintf( '<a href="http://%1$s">%1$s</a>', $signup->domain ), |
| 160 | sprintf( '<a href="http://%1$s%2$s">%1$s%2$s</a>', $signup->domain, $blog_details->path ), |
159 | 161 | $signup->user_login, |
160 | 162 | $signup->user_email, |
161 | 163 | wp_lostpassword_url() |
… |
… |
get_header( 'wp-activate' ); |
196 | 198 | <p class="view"> |
197 | 199 | <?php |
198 | 200 | /* translators: 1: Login URL, 2: Network home URL. */ |
199 | | 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() ); |
| 201 | printf( |
| 202 | __( 'Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), |
| 203 | network_site_url( $blog_details->path . 'wp-login.php', 'login' ), |
| 204 | network_home_url( $blog_details->path ) ); |
200 | 205 | ?> |
201 | 206 | </p> |
202 | 207 | <?php |
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 8d6ab511fb..cf511ac5c9 100644
a
|
b
|
function wp_lostpassword_url( $redirect = '' ) { |
609 | 609 | if ( ! empty( $redirect ) ) { |
610 | 610 | $args['redirect_to'] = urlencode( $redirect ); |
611 | 611 | } |
| 612 | $args['action'] = "lostpassword"; |
612 | 613 | |
613 | | $lostpassword_url = add_query_arg( $args, network_site_url( 'wp-login.php?action=lostpassword', 'login' ) ); |
| 614 | $blog_details = get_blog_details(); |
| 615 | |
| 616 | $lostpassword_url = add_query_arg( $args, network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ); |
614 | 617 | |
615 | 618 | /** |
616 | 619 | * Filters the Lost Password URL. |