Changeset 47219 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 02/09/2020 04:52:28 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/rest-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r47122 r47219 373 373 if ( is_ssl() && isset( $_SERVER['SERVER_NAME'] ) ) { 374 374 // If the current host is the same as the REST URL host, force the REST URL scheme to HTTPS. 375 if ( $_SERVER['SERVER_NAME'] === parse_url( get_home_url( $blog_id ), PHP_URL_HOST )) {375 if ( parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) === $_SERVER['SERVER_NAME'] ) { 376 376 $url = set_url_scheme( $url, 'https' ); 377 377 }
Note: See TracChangeset
for help on using the changeset viewer.