[wp-trac] Re: [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:25:24 GMT 2008


#5805: wp_blacklist_check-hook doesn't pass all the arguments it should
-----------------------+----------------------------------------------------
 Reporter:  webaholic  |        Owner:  anonymous
     Type:  defect     |       Status:  closed   
 Priority:  normal     |    Milestone:           
Component:  General    |      Version:           
 Severity:  normal     |   Resolution:  invalid  
 Keywords:             |  
-----------------------+----------------------------------------------------
Changes (by darkdragon):

  * status:  new => closed
  * version:  2.3.3 =>
  * resolution:  => invalid
  * milestone:  2.3.4 =>

Comment:

 You need to read more about add_action and do_action(). The calls are
 correct.

 You have to do this instead.

 {{{
 function myspamcheck_blacklist_check($author, $email,
                                      $url, $comment,
                                      $user_ip, $user_agent)
 {
     // whatever
 }

 add_action('wp_blacklist_check', 'myspamcheck_blacklist_check', 6);
 }}}

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


More information about the wp-trac mailing list