Make WordPress Core

Ticket #52421: remote-home-url-https-exceptions.patch

File remote-home-url-https-exceptions.patch, 540 bytes (added by herregroen, 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 ) { 
    32753275        }
    32763276
    32773277        if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ), true ) ) {
    3278                 if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $pagenow ) {
     3278                if ( is_ssl() ) {
    32793279                        $scheme = 'https';
    32803280                } else {
    32813281                        $scheme = parse_url( $url, PHP_URL_SCHEME );