Ticket #52421: remote-home-url-https-exceptions.patch
| File remote-home-url-https-exceptions.patch, 540 bytes (added by , 5 years ago) |
|---|
-
src/wp-includes/link-template.php
diff --git src/wp-includes/link-template.php src/wp-includes/link-template.php index 83e7f607be..64024b1166 100644
function get_home_url( $blog_id = null, $path = '', $scheme = null ) { 3275 3275 } 3276 3276 3277 3277 if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ), true ) ) { 3278 if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $pagenow) {3278 if ( is_ssl() ) { 3279 3279 $scheme = 'https'; 3280 3280 } else { 3281 3281 $scheme = parse_url( $url, PHP_URL_SCHEME );