get_ version of comments_number()
|Reported by:||nbachiyski||Owned by:||wonderboymusic|
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().
Change History (12)
- Keywords early added
- Milestone changed from 3.0 to 3.1
- Type changed from defect (bug) to enhancement
- Keywords needs-refresh removed
- Milestone changed from Future Release to 4.0