[wp-trac] Re: [WordPress Trac] #6283: apply_filters() bug

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 10:36:05 GMT 2009


#6283: apply_filters() bug
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  westi   
     Type:  defect (bug)       |       Status:  reopened
 Priority:  normal             |    Milestone:  2.9     
Component:  General            |      Version:  2.5     
 Severity:  normal             |   Resolution:          
 Keywords:  needs-patch        |  
-------------------------------+--------------------------------------------

Comment(by DD32):

 Just because a filter accepts 0 vars, Doesnt mean that the function doesnt
 return data.

 That being said, Why is the {{{$accepted_args}}} even there? AFAIK, You
 can call a function with extra vars without issue. (ie. {{{function
 test(){ func_get_args() } test(1,2,3,4);}}}) infact, func_get_args() is
 used commonly by WordPress..

 Suggest invalid myself again, Its not a defect, Its a feature request.
 Filters work by filtering data, Actions work as acting upon an event
 occuring, Thats what they're designed as/for.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6283#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list