Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add check that is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Jan 20, 2023
1 parent 641d40d commit 0765a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Templates/BlockTemplatesCompatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected function remove_default_hooks() {
*/
$additional_hook_data = apply_filters( 'woocommerce_blocks_hook_compatibility_additional_data', array() );

if ( empty( $additional_hook_data ) ) {
if ( empty( $additional_hook_data ) || ! is_array( $additional_hook_data ) ) {
return;
}

Expand Down

0 comments on commit 0765a73

Please sign in to comment.