Skip to content

Commit

Permalink
Merge pull request #578 from humanmade/backport-576-to-v13-branch
Browse files Browse the repository at this point in the history
[Backport v13-branch] Force order of precedence in ?? and &&
  • Loading branch information
kovshenin authored Feb 7, 2023
2 parents 16218e4 + 40f2a4c commit cc5d26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function bootstrap() {
add_filter( 'altis.search.create_package_id', __NAMESPACE__ . '\\set_search_package_id', 10, 3 );

// If we're on Codespaces, the native host will be localhost.
if ( $config['codespaces_integration'] ?? null && $_SERVER['HTTP_HOST'] === 'localhost' ) {
if ( ( $config['codespaces_integration'] ?? null ) && $_SERVER['HTTP_HOST'] === 'localhost' ) {
// Use forwarded host if we can.
if ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) {
// phpcs:ignore HM.Security.ValidatedSanitizedInput
Expand Down

0 comments on commit cc5d26f

Please sign in to comment.