You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, you can workaround this issue by ensuring that relation key is the first element in the array, but that's sort of luck. Happy to submit a patch, but the code causing this issue looks like it's in there to handle another strange edge case. Maybe we can discuss the original intent more @tlovett1.
Describe the bug
When you are nesting meta queries more than a single level deep, all but the first meta query is stripped out of the deeper queries.
Take for example:
In this example, the meta query on
key2
get's stripped out because of https://github.com/10up/ElasticPress/blob/develop/includes/classes/Indexable.php#L488Steps to Reproduce
meta_query[0][1]
is missing.Expected behavior
Meta queries should not disappear.
Screenshots
Environment information
The text was updated successfully, but these errors were encountered: