Make WordPress Core

Changeset 33081


Ignore:
Timestamp:
07/04/2015 04:20:18 AM (10 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r32730 r33081  
    808808        } elseif ( count( $all_blogs ) == 1 ) {
    809809            $blog = reset( $all_blogs );
    810             echo $blog->domain;
     810            echo esc_url( get_home_url( $blog->userblog_id ) );
    811811            if ( $primary_blog != $blog->userblog_id ) // Set the primary blog again if it's out of sync with blog list.
    812812                update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id );
Note: See TracChangeset for help on using the changeset viewer.