-
Notifications
You must be signed in to change notification settings - Fork 29
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
meta_key and meta_query #29
Comments
(just a note, I think meta_key might need to be defined when doing orderby 'meta_value_num' to determine which meta_value to use when sorting.) |
A patch would be much appreciated 👍. The meta query might need a larger update to bring it up to speed with the latest in core, so if it seems like this is easier said than done and starts to turn into that, let me know and we can collaborate on the larger overhaul. |
Quick update here: I'm currently working on this issue and am hoping to have a PR ready today or tomorrow |
@sboisvert can you (or someone on your team) code review that? ^ |
Looks good by me. @philipjohn Do you have any concerns with putting this as the RC release on production? |
Yep, let's make this our RC. |
Okay pulling master 1.x and pushing it to RC plugins |
When both parameters are present only meta_key is used, the meta_query part is silently dropped.
The current WP_Query behaviour is to have an exist check on the meta_key that is inside the meta_key property as well as what is defined into meta_query.
Let me know if you think this should be supported and I'll write a patch.
The text was updated successfully, but these errors were encountered: