Skip to content

Commit

Permalink
Only use array_values if is array
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Oct 4, 2023
1 parent 719a58c commit 7706d3a
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' => array_values( $post_status ),
'post_status' => is_array( $post_status ) ? array_values( $post_status ) : $post_status,
],
];
}
Expand Down

0 comments on commit 7706d3a

Please sign in to comment.