#11882 closed defect (bug) (fixed)
get_pending_comments_num has inconsistent behaviour
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Comments | Keywords: | needs-unit-tests |
Focuses: | Cc: |
Description
You sometimes get and array and sometime not even when you should.
It only return numbers for posts with pending comments.
It needs some tests
Attachments (2)
Change History (9)
#3
@
15 years ago
- Keywords needs-unit-tests added
So far I have been manually testing this and I think we have possibly more dead code we can remove.
I also want to write some unit tests for this.
#5
@
15 years ago
- Status changed from new to assigned
This ticket is all set except for the unit tests.
Note: See
TracTickets for help on using
tickets.
[12596] - Introduced a bug while trying to fix issues surrounding this before.
Have had reports of notices like:
Warning: number_format() expects parameter 1 to be double, array given in wp-admin/includes/template.php on line 2275