Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post__name_in support #2194

Merged
merged 7 commits into from
May 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change term query for terms
  • Loading branch information
Oscar Sanchez authored and Oscar Sanchez committed May 13, 2021
commit 0e42db1060278896305f65365e6cb065506df0ef
2 changes: 1 addition & 1 deletion includes/classes/Indexable/Post/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ function( $tax_query ) use ( $args ) {
*/
if ( ! empty( $args['post_name__in'] ) ) {
$filter['bool']['must'][]['bool']['must'] = array(
'term' => array(
'terms' => array(
'post_name.raw' => array_values( (array) $args['post_name__in'] ),
),
);
Expand Down