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

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 28 17:09:13 GMT 2008


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

  * status:  assigned => closed
  * resolution:  => invalid
  * milestone:  2.7 =>

Comment:

 Resolving as invalid. Westi is correct. You might, at some stage, want to
 define a filter that completely overrode the input
 {{{
 function foo() {
     return "I've overiden the content of this post!";
 }
 }}}

 To get your expected result foo should be defined as:
 {{{
 function foo($arg) {
     return $arg;
 }
 }}}

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


More information about the wp-trac mailing list