WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#19054 closed defect (bug) (invalid)

Bug in comment.php

Reported by: SamMan Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

Hello!

I have WP ver. 3.2.1 and think thal line 617 in \wp-includes\comment.php must be correct from
extract($commentdata, EXTR_SKIP);
to
if (is_array($commentdata)) { extract($commentdata, EXTR_SKIP ); }

Otherwise we will have error sometimes when user add comment. The error is:
Warning: extract() [function.extract]: First argument should be an array in includes\comment.php, line 617.
This error, for example, has a place when anonymous user try to post too many comments in short time (flood).

Change History (3)

comment:1 @dd324 years ago

This sounds like a conflict coming from a plugin to me.

comment:2 @SamMan4 years ago

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

Yes, you a right. It was only my fail, no problem with WP engine, no need to correct comment.php file - it's OK.

comment:3 @kawauso4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.