Changeset 21664 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 08/30/2012 01:33:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r21628 r21664 1876 1876 1877 1877 /** 1878 * Formats an String URL to use HTTPS if HTTP is found. 1878 * Formats a URL to use https. 1879 * 1879 1880 * Useful as a filter. 1880 1881 * 1881 1882 * @since 2.8.5 1882 **/ 1883 * 1884 * @param string URL 1885 * @return string URL with https as the scheme 1886 */ 1883 1887 function filter_SSL( $url ) { 1884 if ( !is_string( $url ) ) 1885 return get_bloginfo( 'url' ); //return home blog url with proper scheme 1886 1887 $arrURL = parse_url( $url ); 1888 1889 if ( force_ssl_content() && is_ssl() ) { 1890 if ( 'http' === $arrURL['scheme'] ) 1891 $url = str_replace( $arrURL['scheme'], 'https', $url ); 1892 } 1888 if ( ! is_string( $url ) ) 1889 return get_bloginfo( 'url' ); // Return home blog url with proper scheme 1890 1891 if ( force_ssl_content() && is_ssl() ) 1892 $url = set_url_scheme( $url, 'https' ); 1893 1893 1894 1894 return $url;
Note: See TracChangeset
for help on using the changeset viewer.