Opened 15 years ago
Closed 15 years ago
#17558 closed defect (bug) (fixed)
Incorrect docs in get_the_terms().
| Reported by: | mfields | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Inline Docs | Version: | 3.2 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
I've recently used get the terms outside the loop successfully, but the docs state that it must be used inside the loop both in the Codex an inline. I believe this to be an error. Please correct me if I am wrong.
Attachments (1)
Change History (6)
#1
@
15 years ago
- Keywords commit added; dev-feedback removed
- Milestone Awaiting Review → 3.2
It's accurate only when the $id is not passed (or rather, is 0/false/null, since the next argument is required) and you're outside the loop. This change is fine to me.
#3
@
15 years ago
These functions are odd in that $id has a default but is followed by a non-optional taxonomy. The default should likely be removed. I don't know that we should bother documenting passing 0. Might as well just past the ID since you have to pass something.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Remove potentially incorrect documentation.