From f8ec1c9a2fc12725824777c6c2ba19b529ba8381 Mon Sep 17 00:00:00 2001 From: Ajay DSouza Date: Fri, 4 Mar 2022 21:44:23 +0000 Subject: [PATCH] Update main.php --- includes/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/main.php b/includes/main.php index 2bf9bbd..0beb484 100644 --- a/includes/main.php +++ b/includes/main.php @@ -76,7 +76,7 @@ function get_wherego( $args = array() ) { * @param array $results Array containing the related post IDs * @param array $args Arguments array. */ - $results = apply_filters( 'get_wherego_posts_id', $results, $args ); + $results = apply_filters( 'get_wherego_posts_id', (array) $results, $args ); $widget_class = $args['is_widget'] ? 'wherego_related_widget' : 'wherego_related '; $shortcode_class = $args['is_shortcode'] ? 'wherego_related_shortcode ' : '';