#15835 closed enhancement (fixed)
wp_get_object_terms: allow slugs option in fields argument
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
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)
#2
@
14 years ago
- Cc lance@… added
This patch is up to date (checked it again today) so should be good to go for 3.2.
#3
@
14 years ago
- Keywords 3.2-early removed
- Milestone changed from Future Release to 3.3
Refreshed for 3.3.
#4
@
14 years ago
Let's add some unit tests: http://unit-tests.trac.wordpress.org/browser/wp-testcase/test_includes_taxonomy.php
Note: See
TracTickets for help on using
tickets.
Patch looks great.