Changeset 55990 for trunk/src/wp-includes/media.php
- Timestamp:
- 06/22/2023 02:55:47 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r55988 r55990 1325 1325 * (which is to say, when they share the domain name of the current request). 1326 1326 */ 1327 if ( is_ssl() && 'https' !== substr( $image_baseurl, 0, 5) && parse_url( $image_baseurl, PHP_URL_HOST ) === $_SERVER['HTTP_HOST'] ) {1327 if ( is_ssl() && ! str_starts_with( $image_baseurl, 'https' ) && parse_url( $image_baseurl, PHP_URL_HOST ) === $_SERVER['HTTP_HOST'] ) { 1328 1328 $image_baseurl = set_url_scheme( $image_baseurl, 'https' ); 1329 1329 }
Note: See TracChangeset
for help on using the changeset viewer.