fix: test if `post_status` is array #729
This commit is contained in:
parent
8c2c125fa4
commit
f727a8d691
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue