Ticket #20759: 20759.3.diff
File 20759.3.diff, 919 bytes (added by , 13 years ago) |
---|
-
wp-includes/link-template.php
1890 1890 * @return string Home url link with optional path appended. 1891 1891 */ 1892 1892 function get_home_url( $blog_id = null, $path = '', $scheme = null ) { 1893 $orig_scheme = $scheme;1894 1895 if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) )1896 $scheme = is_ssl() && !is_admin() ? 'https' : 'http';1897 1898 1893 if ( empty( $blog_id ) || !is_multisite() ) { 1899 1894 $url = get_option( 'home' ); 1900 1895 } else { … … 1908 1903 if ( ! empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) 1909 1904 $url .= '/' . ltrim( $path, '/' ); 1910 1905 1911 return apply_filters( 'home_url', $url, $path, $ orig_scheme, $blog_id );1906 return apply_filters( 'home_url', $url, $path, $scheme, $blog_id ); 1912 1907 } 1913 1908 1914 1909 /**