Skip to content

Commit

Permalink
Merge pull request #3680 from 10up/fix/post-status-array
Browse files Browse the repository at this point in the history
Make sure post_status is always passed as an array
  • Loading branch information
felipeelia authored Oct 4, 2023
2 parents b18ffc1 + 7706d3a commit 96e1cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Indexable/Post/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ protected function parse_post_status( $args ) {

return [
$terms_map_name => [
'post_status' => $post_status,
'post_status' => is_array( $post_status ) ? array_values( $post_status ) : $post_status,
],
];
}
Expand Down

0 comments on commit 96e1cca

Please sign in to comment.