Opened 15 years ago
Closed 9 years ago
#9927 closed enhancement (maybelater)
deprecate category_description() in favor of get_category_description()
Reported by: | ramiy | Owned by: | westi |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 2.8 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
Attachments (6)
Change History (22)
#2
@
15 years ago
- Milestone changed from 2.8 to 2.9
- Owner set to westi
- Status changed from new to accepted
#6
@
15 years ago
- 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.
#8
@
15 years ago
- 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.
#10
in reply to:
↑ 9
@
15 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.
#14
@
11 years ago
- Component changed from Inline Docs to Taxonomy
Seems more properly categorized Taxonomy, this doesn't look like Inline Docs to me
#15
@
11 years ago
9927.6.patch is a refresh at r25361, and fixes the formatting for the deprecated functions.
#16
@
9 years ago
- Milestone Future Release deleted
- Resolution set to maybelater
- Status changed from accepted to closed
category-template.php
is full of deprecate-able funcs, but there are too many uses in the wild for this to be worth worrying about right now: https://github.com/search?l=php&p=1&q=category_description&type=Code&utf8=%E2%9C%93
Nice idea. Not for 2.8