Opened 4 years ago
Last modified 3 years ago
#9927 accepted enhancement
deprecate category_description() in favor of get_category_description()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Inline Docs | Version: | 2.8 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | r_a_m_i@… |
Description
Attachments (5)
Change History (18)
- Milestone changed from 2.8 to 2.9
- Owner set to westi
- Status changed from new to accepted
patch needs a slight update to change the versions, else probably good to go
comment:5
peaceablewhale — 4 years ago
How about tag_description(), which was introduced in 2.8?
- category_description() deprecate in favor of get_category_description()
- tag_description() deprecate in favor of get_tag_description()
The old function are still in use in deprecated.php file.
- Type changed from feature request to enhancement
This is a good idea, though I'm not convinced this is worth it. If we're going to do this, we'll need to rename term_description() as well.
comment:10
in reply to:
↑ 9
nacin — 3 years ago
Replying to ramiy:
nacin, we can rename term_description() as well.
I wasn't convinced it was worth it because that's three functions to rename, simply for get_* consistency. Surely we have other functions that don't start with "get_", especially those that also don't start with "the_", that return a value. I suppose this is considered a template tag, so I understand why we should probably do it here.
comment:11
nacin — 3 years ago
- Component changed from Template to Inline Docs
comment:12
nacin — 3 years ago
- Milestone changed from 3.0 to 3.1
comment:13
nacin — 3 years ago
- Milestone changed from Awaiting Triage to Future Release

Nice idea. Not for 2.8