Move get_current_blog_id() to load.php so it is available during multisite bootstrap. fixes #21432

git-svn-id: http://core.svn.wordpress.org/trunk@21484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-08-09 13:17:14 +00:00
parent 5fd1d828a6
commit 14ecba530b
2 changed files with 12 additions and 12 deletions

View File

@ -491,18 +491,6 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
return $output;
}
/**
* Retrieve the current blog id
*
* @since 3.1.0
*
* @return int Blog id
*/
function get_current_blog_id() {
global $blog_id;
return absint($blog_id);
}
/**
* Display or retrieve page title for all areas of blog.
*

View File

@ -653,6 +653,18 @@ function is_multisite() {
return false;
}
/**
* Retrieve the current blog id
*
* @since 3.1.0
*
* @return int Blog id
*/
function get_current_blog_id() {
global $blog_id;
return absint($blog_id);
}
/**
* Attempts an early load of translations.
*