diff --git a/includes/blocks.php b/includes/blocks.php index e87f3042..fd2f9f00 100644 --- a/includes/blocks.php +++ b/includes/blocks.php @@ -43,6 +43,10 @@ function register_blocks() { * @return array Filtered categories. */ function blocks_categories( $categories ) { + if ( ! is_array( $categories ) ) { + $categories = []; + } + return array_merge( $categories, array(