]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/http.php
WordPress 3.8.1
[autoinstalls/wordpress.git] / wp-includes / http.php
index e30fa41adedbcc550e65251135732e863cf60cb9..0b4b109d9f56b452362ddf059cb04dde81f33d5c 100644 (file)
@@ -545,11 +545,11 @@ function allowed_http_request_hosts( $is_external, $host ) {
  * @return bool
  */
 function ms_allowed_http_request_hosts( $is_external, $host ) {
-       global $wpdb, $current_site;
+       global $wpdb;
        static $queried = array();
        if ( $is_external )
                return $is_external;
-       if ( $host === $current_site->domain )
+       if ( $host === get_current_site()->domain )
                return true;
        if ( isset( $queried[ $host ] ) )
                return $queried[ $host ];