Closed JPry closed 1 year ago
@JPry Thanks for the PR, but I'm pretty sure -- can't figure out how to set up unit tests on SWP_Query -- I addressed this issue in https://github.com/CalderaWP/searchwp-api-route/commit/ee372f3f6529e8d51e4f8b475a733ad61a344a3e
Change the default value for
tax_query
andmeta_query
tonull
, so that the default value doesn't trigger the validation callback.Without this change, a simple search (no tax query parameters passed) yields a response like this:
Technically the
meta_query
portion is working fine as-is, but I feel that it's more appropriate to have a default ofnull
than an array filled with empty values.