Don't stomp scheme arg. see #12736
git-svn-id: http://svn.automattic.com/wordpress/trunk@13882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
27b9ed12f8
commit
3a69eacbbe
|
@ -1831,6 +1831,8 @@ function home_url( $path = '', $scheme = null ) {
|
|||
*/
|
||||
function get_home_url( $blog_id = null, $path = '', $scheme = null ) {
|
||||
$orig_scheme = $scheme;
|
||||
|
||||
if ( !in_array($scheme, array('http', 'https')) )
|
||||
$scheme = is_ssl() && !is_admin() ? 'https' : 'http';
|
||||
|
||||
if ( empty($blog_id) || !is_multisite() )
|
||||
|
@ -2074,6 +2076,8 @@ function network_site_url( $path = '', $scheme = null ) {
|
|||
function network_home_url( $path = '', $scheme = null ) {
|
||||
global $current_site;
|
||||
$orig_scheme = $scheme;
|
||||
|
||||
if ( !in_array($scheme, array('http', 'https')) )
|
||||
$scheme = is_ssl() && !is_admin() ? 'https' : 'http';
|
||||
|
||||
$url = 'http://' . $current_site->domain . $current_site->path;
|
||||
|
|
Loading…
Reference in New Issue