Changeset 35349
- Timestamp:
- 10/21/2015 11:05:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/rest-functions.php
r35342 r35349 255 255 } 256 256 257 if ( is_ssl() ) {258 // If the current host is the same as the REST URL host, force the REST URL scheme to HTTPS259 if ( $_SERVER['SERVER_NAME'] === parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) ) {260 $url = set_url_scheme( $url, 'https' );261 }262 }263 264 257 /** 265 258 * Filter the REST URL.
Note: See TracChangeset
for help on using the changeset viewer.