WordPress.org

Make WordPress Core

Ticket #20567: functions.php.patch

File functions.php.patch, 593 bytes (added by Mvied, 2 years ago)

/wp-includes/functions.php

  • functions.php

     
    29412941                        return true; 
    29422942        } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { 
    29432943                return true; 
     2944        } elseif ( isset($_SERVER['HTTP_X_FORWARDED_PORT']) && ( '443' == $_SERVER['HTTP_X_FORWARDED_PORT'] ) ) { 
     2945                return true; 
     2946        } elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ( 'https' == strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) ) ) { 
     2947                return true; 
    29442948        } 
    29452949        return false; 
    29462950}