Skip to content
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

Fixed taxonomy search condition for keyword search #859

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

jonasvogel
Copy link
Contributor

The taxonomy search condition for searching keywords was not set correctly. The database query compared term_id with taxonomy_term_id, which isn't the same (see http://wordpress.stackexchange.com/a/230585) and resulted in false positives for the search query. The fix adds an additional join for the wp_term_taxonomy table.

The taxonomy search condition for searching keywords was not set correctly. The database query compared `term_id` with `taxonomy_term_id`, which isn't the same (see http://wordpress.stackexchange.com/a/230585) and resulted in false positives for the search query. The fix adds an additional join for the `wp_term_taxonomy` table.
@dbtlr
Copy link
Contributor

dbtlr commented Feb 15, 2017

Great catch! LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants