Ticket #33730: cloudflare.diff
| File cloudflare.diff, 489 bytes (added by , 11 years ago) |
|---|
-
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() { 3794 3794 return true; 3795 3795 } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { 3796 3796 return true; 3797 }elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ( 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) { 3798 return true; 3797 3799 } 3798 3800 return false; 3799 3801 }