From 827b92a9bd8a84c0ce73b55079675e9a2b0a14e7 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 7 Apr 2014 21:28:16 +0000 Subject: [PATCH] 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 --- wp-includes/ms-load.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php index 84e9118b6e..ee99398dfd 100644 --- a/wp-includes/ms-load.php +++ b/wp-includes/ms-load.php @@ -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; +}