From 39c58e48cf213cd3781bc6df5f9bf1a40f8182e0 Mon Sep 17 00:00:00 2001 From: "K. Adam White" Date: Mon, 3 Aug 2026 13:19:45 -0400 Subject: [PATCH] Wrap coalescing operation so that it resolves before boolean check ! has higher priority than ??, so the original line here parsed as ( ! $attrs['query']['inherit'] ) ?? false and causes a PHP warning `[warning] Undefined array key "inherit"`. --- hm-query-loop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hm-query-loop.php b/hm-query-loop.php index 3fa1656..761ec85 100644 --- a/hm-query-loop.php +++ b/hm-query-loop.php @@ -308,7 +308,7 @@ function pre_render_block( $pre_render, $parsed_block ) { $attrs = $parsed_block['attrs'] ?? []; - if ( ! $attrs['query']['inherit'] ?? false ) { + if ( ! ( $attrs['query']['inherit'] ?? false ) ) { return $pre_render; }