Skip to content

Commit b97b0b4

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38664 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 736edc7 commit b97b0b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-activate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function wpmu_activate_stylesheet() {
125125
<?php
126126
}
127127
} else {
128-
$url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : '';
128+
$url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
129129
$user = get_userdata( (int) $result['user_id'] );
130130
?>
131131
<h2><?php _e('Your account is now active!'); ?></h2>

0 commit comments

Comments
 (0)