Opened 17 years ago
Closed 17 years ago
#8503 closed defect (bug) (fixed)
Notice : undefined array in wp-includes/comment.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.7 | Priority: | low |
| Severity: | minor | Version: | 2.7 |
| Component: | Optimization | Keywords: | notice |
| Focuses: | Cc: |
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.
(In [10136]) Only count specific comment approval types for the types we know about, to avoid a potential notice. fixes #8503