Skip to content

Commit

Permalink
Fix wp-config issue on PHP 8.0 by using isset before checking value
Browse files Browse the repository at this point in the history
  • Loading branch information
john-shaffer committed Nov 5, 2021
1 parent d26c008 commit fe12014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
$_SERVER['HTTP_HOST'] = 'localhost:7000';
}

if ( 'on' === $_SERVER['HTTPS'] ) {
if ( isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ) {
define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
} else {
Expand Down

0 comments on commit fe12014

Please sign in to comment.