Skip to content

Commit

Permalink
Update main.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Mar 4, 2022
1 parent 77902be commit f8ec1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' : '';
Expand Down

0 comments on commit f8ec1c9

Please sign in to comment.