Move get_current_blog_id() to load.php so it is available during multisite bootstrap. fixes #21432
git-svn-id: https://develop.svn.wordpress.org/trunk@21484 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bad4cefc68
commit
fd52f7397d
@ -491,18 +491,6 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
|
|||||||
return $output;
|
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.
|
* Display or retrieve page title for all areas of blog.
|
||||||
*
|
*
|
||||||
|
@ -653,6 +653,18 @@ function is_multisite() {
|
|||||||
return false;
|
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.
|
* Attempts an early load of translations.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user