diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 5a80a1cfde..bee11f9e36 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -2732,6 +2732,8 @@ function home_url( $path = '', $scheme = null ) { * @return string Home URL link with optional path appended. */ function get_home_url( $blog_id = null, $path = '', $scheme = null ) { + global $pagenow; + $orig_scheme = $scheme; if ( empty( $blog_id ) || !is_multisite() ) { @@ -2743,7 +2745,7 @@ function get_home_url( $blog_id = null, $path = '', $scheme = null ) { } if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) { - if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) + if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $pagenow ) $scheme = 'https'; else $scheme = parse_url( $url, PHP_URL_SCHEME ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f9b9d58ccb..cf0d57af0f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33735'; +$wp_version = '4.4-alpha-33736'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.