[wp-trac] [WordPress Trac] #19860: pre_comment_approved filter has second argument undefined

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 20 09:03:07 UTC 2012


#19860: pre_comment_approved filter has second argument undefined
--------------------------+-----------------------------
 Reporter:  laotse        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I wrote a filter:

 {{{
 function tgb_comment_filter_approved($mApproved, $aCommentData){ ... }
 add_filter('pre_comment_approved', 'tgb_comment_filter_approved');
 }}}

 and $aCommentData is always undefined. So effectively the changeset 15592
 fixing #14802 does not work.

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


More information about the wp-trac mailing list