Make WordPress Core

Ticket #35182: 35182.diff

File 35182.diff, 406 bytes (added by kasparsd, 9 years ago)

Ensure the correct URL when served via SSL

  • wp-includes/general-template.php

    diff --git wp-includes/general-template.php wp-includes/general-template.php
    index 88b1a30..8198878 100644
    function get_site_icon_url( $size = 512, $url = '', $blog_id = 0 ) { 
    777777                restore_current_blog();
    778778        }
    779779
     780        if ( is_ssl() ) {
     781                $url = set_url_scheme( $url );
     782        }
     783
    780784        /**
    781785         * Filter the site icon URL.
    782786         *