Ticket #50339: setup-check-if-behind-tls-termination-proxy.diff
File setup-check-if-behind-tls-termination-proxy.diff, 464 bytes (added by , 5 years ago) |
---|
-
wp-admin/setup-config.php
diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 4ae670d..52cea1d 100644
a b define( 'WP_INSTALLING', true ); 19 19 */ 20 20 define( 'WP_SETUP_CONFIG', true ); 21 21 22 /** 23 * Detect whether we are running behind a TLS Termination Proxy. 24 */ 25 if ( $_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS'] == 1) { 26 $_SERVER['HTTPS']='on'; 27 } 28 22 29 /** 23 30 * Disable error reporting 24 31 *