Changeset 21937 for trunk/wp-includes/link-template.php
- Timestamp:
- 09/21/2012 12:36:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r21919 r21937 1893 1893 $orig_scheme = $scheme; 1894 1894 1895 if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) )1896 $scheme = is_ssl() && !is_admin() ? 'https' : 'http';1897 1898 1895 if ( empty( $blog_id ) || !is_multisite() ) { 1899 1896 $url = get_option( 'home' ); … … 1902 1899 $url = get_option( 'home' ); 1903 1900 restore_current_blog(); 1901 } 1902 1903 if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) { 1904 if ( is_ssl() && ! is_admin() ) 1905 $scheme = 'https'; 1906 else 1907 $scheme = parse_url( $url, PHP_URL_SCHEME ); 1904 1908 } 1905 1909
Note: See TracChangeset
for help on using the changeset viewer.