Warning: This function has been deprecated.

Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

wpmu_current_site() WordPress Function

The wpmu_current_site function is used to get the current site object in a multisite installation. This function will return an object with the following properties: -blog_id: The ID of the site -domain: The domain of the site -path: The path of the site -site_id: The ID of the site -site_url: The URL of the site

wpmu_current_site() #

This deprecated function managed much of the site and network loading in multisite.


Description

The current bootstrap code is now responsible for parsing the site and network load as well as setting the global $current_site object.


Top ↑

Return

(WP_Network)


Top ↑

Source

File: wp-includes/ms-load.php

function wpmu_current_site() {
	global $current_site;
	_deprecated_function( __FUNCTION__, '3.9.0' );
	return $current_site;
}


Top ↑

Changelog

Changelog
VersionDescription
3.9.0This function has been deprecated.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.