WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#8503 closed defect (bug) (fixed)

Notice : undefined array in wp-includes/comment.php

Reported by: mrmist 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)

comment:1 @jacobsantos7 years ago

  • Component changed from General to Optimization
  • Priority changed from normal to low

comment:2 @markjaquith7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10136]) Only count specific comment approval types for the types we know about, to avoid a potential notice. fixes #8503

Note: See TracTickets for help on using tickets.