mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Use wp_login_url() for login links when signing up for a new blog or activating a new blog on Multisite.
Fixes #31495 Props GregLone for the intial patch git-svn-id: https://develop.svn.wordpress.org/trunk@34790 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+6
-2
@@ -115,8 +115,12 @@ get_header();
|
||||
<p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $result['password']; ?></p>
|
||||
</div>
|
||||
|
||||
<?php if ( $url && $url != network_home_url( '', 'http' ) ) : ?>
|
||||
<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>
|
||||
<?php if ( $url && $url != network_home_url( '', 'http' ) ) :
|
||||
switch_to_blog( (int) $result['blog_id'] );
|
||||
$login_url = wp_login_url();
|
||||
restore_current_blog();
|
||||
?>
|
||||
<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>
|
||||
<?php else: ?>
|
||||
<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>
|
||||
<?php endif;
|
||||
|
||||
Reference in New Issue
Block a user