Reduce use of global. Use get_blog_details() instead. fixes #22090

git-svn-id: https://develop.svn.wordpress.org/trunk@22108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-10-04 12:40:09 +00:00
parent 1d1c3e27ce
commit 1b3f54d73d
6 changed files with 20 additions and 18 deletions
+2 -1
View File
@@ -3660,7 +3660,8 @@ class wp_xmlrpc_server extends IXR_Server {
* @access protected
*/
function _multisite_getUsersBlogs($args) {
global $current_blog;
$current_blog = get_blog_details();
$domain = $current_blog->domain;
$path = $current_blog->path . 'xmlrpc.php';