Make WordPress Core


Ignore:
Timestamp:
08/09/2012 01:17:14 PM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r21403 r21484  
    655655
    656656/**
     657 * Retrieve the current blog id
     658 *
     659 * @since 3.1.0
     660 *
     661 * @return int Blog id
     662 */
     663function get_current_blog_id() {
     664    global $blog_id;
     665    return absint($blog_id);
     666}
     667
     668/**
    657669 * Attempts an early load of translations.
    658670 *
Note: See TracChangeset for help on using the changeset viewer.