fix: test if `post_status` is array #729

This commit is contained in:
vnmedeiros 2022-09-15 15:35:13 -03:00
parent 8c2c125fa4
commit f727a8d691
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ class Items extends Repository {
$clauses = [];
$user_id = get_current_user_id();
$post_status = $wp_query->get( 'post_status' );
$post_status = is_array($post_status) ? $post_status : explode(",", $post_status);
foreach ($this->fetching_from_collections as $collection) {