Multisite: Use get_home_url() instead of get_blogaddress_by_id() in wp-activate.php.
`get_home_url()` is a better fit for the "View your site" link and can be properly filtered. This is the last remaining use of `get_blogaddress_by_id()` in core. Props boboudreau, spacedmonkey. Fixes #26855. Built from https://develop.svn.wordpress.org/trunk@38664 git-svn-id: http://core.svn.wordpress.org/trunk@38607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -125,7 +125,7 @@ get_header( 'wp-activate' );
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
$url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : '';
|
||||
$url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
|
||||
$user = get_userdata( (int) $result['user_id'] );
|
||||
?>
|
||||
<h2><?php _e('Your account is now active!'); ?></h2>
|
||||
|
||||
Reference in New Issue
Block a user