From ea4baac6e8332900e7f2248b61d44505385eddf2 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sat, 4 Jul 2015 04:20:18 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/ms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index c3b1e7637b..66fa2a060e 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -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 {