Opened 2 years ago
Closed 2 years ago
#17194 closed defect (bug) (fixed)
Term intersection requests ignore non-existent terms.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Taxonomy | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Perform a term intersection such as tag=foo+bar. If foo doesn't exist then bar is queried solo, thus reducing the request to tag=bar. Intersections that include terms that do not exist should not return any terms.
Attachments (2)
Change History (12)
I ended up using exceptions, since otherwise I would have to check for an error after each call to tranform_query(). I'm not a big fan of exception handling, but in self-contained cases like this, they come in handy.
We should stick to WP_Error usage. No need to introduce an exception here.
As I said, the point of using exceptions here is to avoid error checking at each step. You can't do that with WP_Error message.
Version 0, edited 2 years ago
by scribu
(next)
comment:10
ryan — 2 years ago
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.

I thought I fixed this. Obviously not.