Formally deprecate wpmu_current_site().

props jeremyfelt.
fixes #27702.

Built from https://develop.svn.wordpress.org/trunk@28009


git-svn-id: http://core.svn.wordpress.org/trunk@27839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-04-07 21:28:16 +00:00
parent b00e343a25
commit 827b92a9bd
1 changed files with 18 additions and 6 deletions

View File

@ -276,12 +276,6 @@ function wp_get_network( $network ) {
return $network;
}
/**
* @todo deprecate
*/
function wpmu_current_site() {
}
/**
* Retrieve a site object by its domain and path.
*
@ -424,3 +418,21 @@ function get_current_site_name( $current_site ) {
_deprecated_function( __FUNCTION__, '3.9' );
return $current_site;
}
/**
* This deprecated function managed much of the site and network loading in multisite.
*
* The current bootstrap code is now responsible for parsing the site and network load as
* well as setting the global $current_site object.
*
* @access private
* @since 3.0.0
* @deprecated 3.9.0
*
* @return object
*/
function wpmu_current_site() {
global $current_site;
_deprecated_function( __FUNCTION__, '3.9' );
return $current_site;
}