get_term_by sanitizes incorrect field when using the slug
|Reported by:||cavemonkey50||Owned by:||anonymous|
When using get_term_by to get a term by a slug, the results are blank. This is due to get_term_by sanitizing the field name instead of the term name. The attached patch corrects this problem.