mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
get_current_blog_id(). Props aaroncampbell. fixes #15233
git-svn-id: https://develop.svn.wordpress.org/trunk@16050 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -491,6 +491,18 @@ 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user