WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global when possible.

props jeremyfelt.
fixes #25158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r25615 r26120  
    6565 */
    6666function get_id_from_blogname( $slug ) {
    67     global $wpdb, $current_site;
    68 
     67    global $wpdb;
     68
     69    $current_site = get_current_site();
    6970    $slug = trim( $slug, '/' );
    7071
Note: See TracChangeset for help on using the changeset viewer.