Skip to content

Commit

Permalink
Merge pull request #3781 from 10up/fix/issue-3769
Browse files Browse the repository at this point in the history
Check facet attribute before using it
  • Loading branch information
felipeelia authored Dec 6, 2023
2 parents 78613af + 02feabd commit 36e6ce9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/classes/Feature/Facets/FacetType.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ function( $acc, $block ) use ( $block_name ) {
return $acc;
}

if ( empty( $block['attrs']['facet'] ) ) {
return $acc;
}

$acc[] = $block['attrs']['facet'];
return $acc;
},
Expand Down

0 comments on commit 36e6ce9

Please sign in to comment.