Opened 6 years ago
Closed 6 years ago
#4651 closed defect (bug) (fixed)
get_term_by sanitizes incorrect field when using the slug
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
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.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
(In [5865]) sanitize the value, not the field. Props cavemonkey50. fixes #4651