Skip to content

Commit

Permalink
Fix undefined array key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
akasunil committed Sep 17, 2024
1 parent 13add43 commit 3a0d6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.7/query-loop-block-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
function gutenberg_filter_query_loop_block_query_vars( $query, $block ) {

if ( ! empty( $block->context['query']['after'] ) || $block->context['query']['before'] ) {
if ( ! empty( $block->context['query']['after'] ) || ! empty( $block->context['query']['before'] ) ) {
$query['date_query'] = array(
array(
'after' => $block->context['query']['after'],
Expand Down

0 comments on commit 3a0d6b9

Please sign in to comment.