[wp-trac] [WordPress Trac] #3125: do_action no longer handling array() arguments

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 12 06:09:55 GMT 2006


#3125: do_action no longer handling array() arguments
---------------------+------------------------------------------------------
 Reporter:  dwc      |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:           
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 A recent change to do_action (some combination of [4176] and [4177]?)
 seems to have broken the few actions which pass an array containing more
 than one argument:

 {{{
 ./wp-admin/admin-functions.php:478:     do_action('check_passwords', array
 ($user->user_login, & $pass1, & $pass2));
 ./wp-includes/comment.php:698:  do_action('pre_ping',  array(&$post_links,
 &$pung));
 ./wp-login.php:191:     do_action('wp_authenticate', array(&$user_login,
 &$user_pass));
 }}}

 Previously do_action would "unwrap" these arguments and pass them to
 plugin functions.  Now, plugins get the array itself, causing errors like:

 {{{
 Missing argument 2 for authenticate()
 }}}

 This occurs regardless of how many arguments the plugin claims to accept
 in its add_action() call.

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


More information about the wp-trac mailing list