[wp-trac] Re: [WordPress Trac] #5231: add_action('all', ...) causes unexpected behaviour

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 7 23:53:14 GMT 2007


#5231: add_action('all', ...) causes unexpected behaviour
-------------------------------------+--------------------------------------
 Reporter:  tellyworth               |        Owner:  anonymous
     Type:  defect                   |       Status:  reopened 
 Priority:  normal                   |    Milestone:  2.4      
Component:  General                  |      Version:           
 Severity:  normal                   |   Resolution:           
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by ryan):

 Patch brings actions and filters back together in $wp_filter.  'all'
 functions are passed the name of the action/filter and all arguments.
 This means that 'all' hooks don't need to use current_filter() to get the
 current action/filter.  We could also pass the hook type (filter or
 action), although I don't know how practically useful that is to the
 plugins that would be using 'all' hooks.

 Functions attached to 'all' are not expected to return anything.  This
 avoids needing a filter versus action distinction, allowing us to use one
 array to store both.

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


More information about the wp-trac mailing list