mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
8cb4991bcf
commit
1084773c1c
@ -125,7 +125,7 @@ get_header( 'wp-activate' );
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
} else {
|
} 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'] );
|
$user = get_userdata( (int) $result['user_id'] );
|
||||||
?>
|
?>
|
||||||
<h2><?php _e('Your account is now active!'); ?></h2>
|
<h2><?php _e('Your account is now active!'); ?></h2>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38663';
|
$wp_version = '4.7-alpha-38664';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user