[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:23:19 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:
--------------------------+-------------------------------------------------
On my subdomain install, site_name isnt being retained in the object for
$current_site
{{{
object(stdClass)#11 (4) { ["id"]=> string(1) "1" ["domain"]=> string(10)
"frumph.net" ["path"]=> string(1) "/" ["blog_id"]=> string(1) "1" }
Notice: Undefined property: stdClass::$site_name in \wp-
content\themes\easel\functions\footer-text.php on line 32
}}}
Line 32:
{{{
$output .= __('Hosted on','easel') . ' <a
href="http://'. $current_site->domain. $current_site->path. '">'.
$current_site->site_name. '</a> ';
}}}
As you can see from the var_dump the site_name is nowhere to be found.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14965>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list