Avoid E_STRICT notices. see #18975

git-svn-id: https://develop.svn.wordpress.org/trunk@19094 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-31 19:38:46 +00:00
parent a5c6da9a2e
commit 4399cf7610
5 changed files with 21 additions and 15 deletions
+4
View File
@@ -134,6 +134,10 @@ function get_current_site_name( $current_site ) {
*/
function wpmu_current_site() {
global $wpdb, $current_site, $domain, $path, $sites, $cookie_domain;
if ( empty( $current_site ) )
$current_site = new stdClass;
if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) {
$current_site->id = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1;
$current_site->domain = DOMAIN_CURRENT_SITE;