SupportsAdvancedSearch can trigger database errors in some cases, such as when running admin queries, or when custom clauses are added to the query (and thus meta_key is not a unique column).
Solution
Detect edge cases and default settings to support (hopefully) all use-cases.
Impact
Stabilizes the search API.
Usage Changes
None.
Considerations
None.
Testing
Passes e2e tests (this isn't very unit-testable as-is).
Ticket: #108
Issue
SupportsAdvancedSearch
can trigger database errors in some cases, such as when running admin queries, or when custom clauses are added to the query (and thusmeta_key
is not a unique column).Solution
Detect edge cases and default settings to support (hopefully) all use-cases.
Impact
Stabilizes the search API.
Usage Changes
None.
Considerations
None.
Testing
Passes e2e tests (this isn't very unit-testable as-is).