Ensure taxonomy query args are filterable#2380
Ensure taxonomy query args are filterable#2380danielbachhuber wants to merge 3 commits intodevelopfrom
Conversation
|
@WP-API/amigos #reviewmerge |
|
@joehoyle Thoughts on the build failure? |
|
@danielbachhuber you need to add |
I know — wondering why we aren't doing that right now. |
That is in #2273 which could use some of your feedback!! |
That's not an issue if we force the parameter to something we're building; i.e. set |
(i.e. it shouldn't be an issue with the way the code is written at the moment, so it should be allowed, I think) |
|
PR triage discussion link: https://wordpress.slack.com/archives/core-restapi/p1473802292001233 |
From @rmccue: > Two changes to make: > a) add `tax_query` to allowed args, and > b) set `$args['tax_query'] = array()` before the `$taxonomies` loop > *but* after the `filter` merge
Current coverage is 94.54% (diff: 100%)@@ develop #2380 diff @@
==========================================
Files 11 11
Lines 3627 3629 +2
Methods 173 173
Messages 0 0
Branches 0 0
==========================================
+ Hits 3429 3431 +2
Misses 198 198
Partials 0 0
|
2a1c5fb to
a057bbd
Compare
|
I don't know what to do to suppress that error, could use some help on this |
|
After discussion in slack, this PR needs a clear description communicating what it is doing (seems to be permitting tax_query to be used in plugins); and we need to decide whether it is still desired after resolving #2799 |
No description provided.