Opened 12 years ago
Closed 10 years ago
#23636 closed enhancement (fixed)
Allow multiple slugs in get_terms
Reported by: | jfarthing84 | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Taxonomy | Keywords: | has-patch needs-docs |
Focuses: | Cc: |
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
@
10 years ago
- Keywords needs-unit-tests added
Thanks for the refresh! It would be nice to have unit tests for the new functionality.
#5
@
10 years ago
23636.2.patch fixes a syntax typo in the previous patch and adds unit tests.
#7
@
10 years ago
- Owner set to boonebgorges
- Resolution set to fixed
- Status changed from new to closed
In 30042:
#8
@
10 years ago
- Keywords needs-docs added
- Resolution fixed deleted
- Status changed from closed to reopened
Unfortunately, the new parameter description for the slug
argument is too vague. We need to say "slug or array of slugs" specifically.
#9
@
10 years ago
- Keywords needs-unit-tests removed
23636.2.patch contains unit tests, so I'm removing the "needs-unit-tests" keyword.
Note: See
TracTickets for help on using
tickets.