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/http.php

    r25302 r26120  
    546546 */
    547547function ms_allowed_http_request_hosts( $is_external, $host ) {
    548     global $wpdb, $current_site;
     548    global $wpdb;
    549549    static $queried = array();
    550550    if ( $is_external )
    551551        return $is_external;
    552     if ( $host === $current_site->domain )
     552    if ( $host === get_current_site()->domain )
    553553        return true;
    554554    if ( isset( $queried[ $host ] ) )
Note: See TracChangeset for help on using the changeset viewer.