From de7e2bb4980517096d73a19c342031c8f75ed942 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Thu, 18 Jan 2024 09:36:08 -0800 Subject: [PATCH] Add missing `array()` argument in `has_post_format()` Fixes #128 --- includes/block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/block.php b/includes/block.php index 054a822..e5d7d37 100644 --- a/includes/block.php +++ b/includes/block.php @@ -489,7 +489,7 @@ function meta_rest_response( $request ) { */ function filter_post_classes( $class_names, $class_name, $post_id ) { if ( in_array( 'cab-item', $class_name, true ) ) { - $format = ( has_post_format( $post_id ) ) ? get_post_format( $post_id ) : 'standard'; + $format = ( has_post_format( array(), $post_id ) ) ? get_post_format( $post_id ) : 'standard'; // Filter out the `cab-item` flag and a handful of default classes. $class_names = array_diff(