Opened 18 years ago
Closed 18 years ago
#8503 closed defect (bug) (fixed)
Notice : undefined array in wp-includes/comment.php
| Reported by: | mrmist | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.7 |
| Component: | Optimization | Version: | 2.7 |
| Severity: | minor | Keywords: | notice |
| Cc: | Focuses: |
Description
Not sure what the position is on these, but with debug on every admin page is giving me -
Notice: Undefined index: Array in /home/www/misthaveneu/htdocs/svn/trunk/wp-includes/comment.php on line 698
Which seems to relate to
foreach( (array) $count as $row_num => $row ) {
$total += $row['num_comments'];
$stats[$approved[$row['comment_approved']]] = $row['num_comments'];
}
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [10136]) Only count specific comment approval types for the types we know about, to avoid a potential notice. fixes #8503