WordPress.org

Make WordPress Core

Ticket #21432: 21432.4.diff

File 21432.4.diff, 1.1 KB (added by ryan, 7 years ago)
  • wp-includes/load.php

     
    654654}
    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 *
    659671 * Used for errors encountered during the initial loading process, before the locale has been
  • wp-includes/general-template.php

     
    492492}
    493493
    494494/**
    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);
    504 }
    505 
    506 /**
    507495 * Display or retrieve page title for all areas of blog.
    508496 *
    509497 * By default, the page title will display the separator before the page title,