Make WordPress Core

Changeset 21484


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

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r21469 r21484  
    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  */
    501 function get_current_blog_id() {
    502     global $blog_id;
    503     return absint($blog_id);
    504492}
    505493
  • 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.