Make WordPress Core

Ticket #33730: cloudflare.diff

File cloudflare.diff, 489 bytes (added by meshr, 11 years ago)

diff from github

  • wp-includes/functions.php

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index 9206f9b..8bfcf46 100644
    a b function is_ssl() { 
    37943794                        return true;
    37953795        } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
    37963796                return true;
     3797        }elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ( 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
     3798                return true;           
    37973799        }
    37983800        return false;
    37993801}