[wp-trac] [WordPress Trac] #19054: Bug in comment.php

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 26 09:18:29 UTC 2011


#19054: Bug in comment.php
--------------------------+-----------------------------
 Reporter:  SamMan        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 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).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19054>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list