Ticket #47854: 47854.diff
File 47854.diff, 613 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/rest-api.php
375 375 376 376 if ( is_ssl() ) { 377 377 // If the current host is the same as the REST URL host, force the REST URL scheme to HTTPS. 378 if ( $_SERVER['SERVER_NAME'] === parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) ) {378 if ( isset( $_SERVER['SERVER_NAME'] ) && $_SERVER['SERVER_NAME'] === parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) ) { 379 379 $url = set_url_scheme( $url, 'https' ); 380 380 } 381 381 }