[wp-trac] [WordPress Trac] #5805: wp_blacklist_check-hook doesn't pass all the arguments it should

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 9 20:06:17 GMT 2008


#5805: wp_blacklist_check-hook doesn't pass all the arguments it should
-----------------------+----------------------------------------------------
 Reporter:  webaholic  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  2.3.4    
Component:  General    |     Version:  2.3.3    
 Severity:  normal     |    Keywords:           
-----------------------+----------------------------------------------------
 Developing an anti-spam plugin I struggled at the wp_blacklist_check -
 hook. Codex says there will be some arguments I should get (like email,
 text, etc.) but I only got the author name.

 Researching why I didn't get anything more I found the following:

 {{{
 do_action('wp_blacklist_check', $author, $email, $url, $comment, $user_ip,
 $user_agent);
 }}}

 while do_action is limited to 2 arguments:


 {{{
 function do_action($tag, $arg = '') { [...] }
 }}}



 This should be changed into something like

 {{{
 do_action('wp_blacklist_check', array($author, $email, $url, $comment,
 $user_ip, $user_agent));
 }}}

 I think.

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


More information about the wp-trac mailing list