WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 03:46:11 PM (9 years ago)
Author:
ryan
Message:

get_current_blog_id(). Props aaroncampbell. fixes #15233

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r15961 r16050  
    490490
    491491    return $output;
     492}
     493
     494/**
     495 * Retrieve the current blog id
     496 *
     497 * @since 3.1.0
     498 *
     499 * @return int Blog id
     500 */
     501function get_current_blog_id() {
     502    global $blog_id;
     503    return absint($blog_id);
    492504}
    493505
Note: See TracChangeset for help on using the changeset viewer.