Opened 8 years ago
Closed 7 years ago
#38369 closed defect (bug) (fixed)
Docs: Incorrect return type for get_comments_number()
Reported by: | ocean90 | Owned by: | kiranpotphode |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description
get_comments_number()
doesn't return an integer. It's a numeric string, for compatibility reasons.
Attachments (2)
Change History (7)
#2
@
8 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.
Return type changed from int to string.