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:
Jeremy Felt 2015-07-04 04:20:18 +00:00
parent 4a785cbeb0
commit ea4baac6e8

View File

@ -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 {