[wp-trac] [WordPress Trac] #14965: multisite global $current_site / get_current_site() is not passing site_name
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 26 13:32:00 UTC 2010
#14965: multisite global $current_site / get_current_site() is not passing
site_name
--------------------------+-------------------------------------------------
Reporter: Frumph | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by Frumph):
A temporary fix for this is:
{{{
$current_site = get_current_site();
if (!isset($current_site->site_name)) {
$site_name = ucfirst( $current_site->domain );
} else {
$site_name = $current_site->site_name;
}
}}}
Which will just capitalize the first letter of the domain instead of
snagging the genuine site_name from the options for the WPMS install
because its just not found on the output (non-admin) side of the theme.
The ms-options finds it just fine on a subdomain, (not root domain) in the
wp-admin, just the not found on the non-admin portion of the theme.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14965#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list