Opened 13 years ago
Closed 12 years ago
#23636 closed enhancement (fixed)
Allow multiple slugs in get_terms
| Reported by: | jfarthing84 | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Taxonomy | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch needs-docs |
| Cc: | Focuses: |
Description
Just as the title says, sometimes I need to retrieve multiple term IDs from slugs. Rather than calling get_term_by over and over, it'd be better to be able to specify an array of slugs for get_terms.
Attachments (4)
Change History (14)
#4
@
12 years ago
- Keywords needs-unit-tests added
Thanks for the refresh! It would be nice to have unit tests for the new functionality.
#5
@
12 years ago
23636.2.patch fixes a syntax typo in the previous patch and adds unit tests.
#8
@
12 years ago
- Keywords needs-docs added
- Resolution fixed
- Status closed → reopened
Unfortunately, the new parameter description for the slug argument is too vague. We need to say "slug or array of slugs" specifically.
#9
@
12 years ago
- Keywords needs-unit-tests removed
23636.2.patch contains unit tests, so I'm removing the "needs-unit-tests" keyword.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)