Opened 15 years ago
Closed 10 years ago
#10177 closed enhancement (fixed)
get_ version of comments_number()
Reported by: | nbachiyski | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Comments | Keywords: | has-patch i18n |
Focuses: | template | Cc: |
Description
Currently: comments_number()
accepts several arguments for the comment number labels and outputs them. get_comments_number()
, however, returns only the number of comments.
Problem: there isn't a function to mimic the comments_number()
functionality, but to return instead of echo.
The patch introduces get_comments_number_text()
, which inherits the functionality of comments_number()
, but returns. comments_number()
just calls get_comments_number_text()
.
Attachments (3)
Change History (12)
#2
@
14 years ago
- Keywords early added
- Milestone changed from 3.0 to 3.1
- Type changed from defect (bug) to enhancement
#4
@
13 years ago
- Milestone changed from 3.1 to Future Release
Moving to Future Release as it is an enhancement.
#5
@
13 years ago
- Cc kapeel.sable@… added
- Keywords 2nd-opinion added
Would be great if you guys could give me points in gci for this bug-fix :)
#8
@
10 years ago
- Keywords needs-refresh removed
- Milestone changed from Future Release to 4.0
10177.2.diff does it.
Note: See
TracTickets for help on using
tickets.
Instead of call_user_func_array() it would be cleaner to just pass the three arguments.