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

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 18 22:27:37 GMT 2008

#6283: apply_filters() bug
 Reporter:  Denis-de-Bernardy  |        Owner:  westi   
     Type:  defect             |       Status:  assigned
 Priority:  normal             |    Milestone:  2.7     
Component:  General            |      Version:  2.5     
 Severity:  normal             |   Resolution:          
 Keywords:  reporter-feedback  |  
Changes (by westi):

  * keywords:  => reporter-feedback
  * owner:  anonymous => westi
  * status:  new => assigned
  * milestone:  2.6 => 2.7


 Reading through this doesn't make much sense.

 Are you saying that you expect apply_filters(...) to return something

 You have added a filter to the_content at priority 0 i.e. it's going to be
 called first.  You are also saying that your filter effectively doesn't
 return anything.  Therefore any later filters are going to get no input so
 the overall result is going to be nothing.

 Any useful filter must return something useful as the result of one filter
 is passed to the next until they run out.

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

More information about the wp-trac mailing list