Opened 10 years ago
Closed 9 years ago
#38369 closed defect (bug) (fixed)
Docs: Incorrect return type for get_comments_number()
| Reported by: | ocean90 | Owned by: | kiranpotphode |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: | docs |
Description
get_comments_number() doesn't return an integer. It's a numeric string, for compatibility reasons.
Attachments (2)
Change History (7)
#2
@
10 years ago
I have modified:
- the function description, to reflect correctly the return type of the function.
- the hard-coded return value, to reflect correctly the function description.
- added new unit test accounting for return type.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Return type changed from int to string.