From 55d6cc4e1d0c4fb8044ec2e4d1b398ec0c2a68e9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 7 Apr 2014 21:27:13 +0000 Subject: [PATCH] Formally deprecate wpmu_current_site(). props jeremyfelt. fixes #27702. git-svn-id: https://develop.svn.wordpress.org/trunk@28009 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-load.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/ms-load.php b/src/wp-includes/ms-load.php index 84e9118b6e..ee99398dfd 100644 --- a/src/wp-includes/ms-load.php +++ b/src/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; +}