mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Use the full site URL in choose_primary_blog() when a user is a member of only one site.
Aligns with the output used when a user is a member of multiple sites. Fixes #32884. git-svn-id: https://develop.svn.wordpress.org/trunk@33081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4a785cbeb0
commit
ea4baac6e8
@ -807,7 +807,7 @@ function choose_primary_blog() {
|
||||
}
|
||||
} elseif ( count( $all_blogs ) == 1 ) {
|
||||
$blog = reset( $all_blogs );
|
||||
echo $blog->domain;
|
||||
echo esc_url( get_home_url( $blog->userblog_id ) );
|
||||
if ( $primary_blog != $blog->userblog_id ) // Set the primary blog again if it's out of sync with blog list.
|
||||
update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id );
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user