Skip to content

Commit

Permalink
Update fragment-1.php
Browse files Browse the repository at this point in the history
Add support for wp-cli
  • Loading branch information
basilhendroff committed Nov 28, 2020
1 parent 4f506d4 commit a57ef39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/fragment-1.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

// Using a reverse proxy.
define('FORCE_SSL_ADMIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
$_SERVER['HTTPS']='on';
}

0 comments on commit a57ef39

Please sign in to comment.