Changeset 37022 for trunk/src/wp-includes/media.php
- Timestamp:
- 03/16/2016 10:48:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r37018 r37022 1027 1027 $upload_dir = wp_get_upload_dir(); 1028 1028 $image_baseurl = trailingslashit( $upload_dir['baseurl'] ) . $dirname; 1029 1030 /* 1031 * If currently on HTTPS, prefer HTTPS URLs when we know they're supported by the domain 1032 * (which is to say, when they share the domain name of the current request). 1033 */ 1034 if ( is_ssl() && 'https' !== substr( $image_baseurl, 0, 5 ) && parse_url( $image_baseurl, PHP_URL_HOST ) === $_SERVER['HTTP_HOST'] ) { 1035 $image_baseurl = set_url_scheme( $image_baseurl, 'https' ); 1036 } 1029 1037 1030 1038 /*
Note: See TracChangeset
for help on using the changeset viewer.