This function has been deprecated.

get_blogaddress_by_domain( string $domain, string $path )

Get a full blog URL, given a domain and a path.


Parameters

$domain

(Required)

$path

(Required)


Return

(string)


Source

File: wp-includes/ms-deprecated.php

function get_blogaddress_by_domain( $domain, $path ) {
	_deprecated_function( __FUNCTION__, 'WP-3.7.0' );

	if ( is_subdomain_install() ) {
		$url = "http://" . $domain.$path;
	} else {
		if ( $domain != $_SERVER['HTTP_HOST'] ) {
			$blogname = substr( $domain, 0, strpos( $domain, '.' ) );
			$url = 'http://' . substr( $domain, strpos( $domain, '.' ) + 1 ) . $path;
			// we're not installing the main blog
			if ( $blogname != 'www.' )
				$url .= $blogname . '/';
		} else { // main blog
			$url = 'http://' . $domain . $path;
		}
	}
	return esc_url_raw( $url );
}


Changelog

Changelog
Version Description
WP-3.7.0 This function has been deprecated.
WP-MU Introduced. (3.0.0)