#15835 closed enhancement (fixed)
wp_get_object_terms: allow slugs option in fields argument
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Taxonomy | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | lance@… |
Description
wp_get_object_terms allows a field argument with options for 'all', 'ids', and 'names' — but doesn't allow 'slugs.'
Attached patch adds support for 'slugs' as a field option.
Attachments (2)
Change History (10)
lancewillett — 2 years ago
- Keywords 3.2-early added
- Milestone changed from Awaiting Review to Future Release
comment:2
lancewillett — 2 years ago
- Cc lance@… added
This patch is up to date (checked it again today) so should be good to go for 3.2.
SergeyBiryukov — 22 months ago
comment:3
SergeyBiryukov — 22 months ago
- Keywords 3.2-early removed
- Milestone changed from Future Release to 3.3
Refreshed for 3.3.
Let's add some unit tests: http://unit-tests.trac.wordpress.org/browser/wp-testcase/test_includes_taxonomy.php
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
In [18603]:
comment:8
SergeyBiryukov — 19 months ago
- Keywords needs-unit-tests removed
Note: See
TracTickets for help on using
tickets.

Patch looks great.