[wp-trac] Re: [WordPress Trac] #9997: martian second empty param in apply_filters

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 1 13:22:52 GMT 2009


#9997: martian second empty param in apply_filters
--------------------------+-------------------------------------------------
 Reporter:  michelwppi    |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:         
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by dd32):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.8 =>


Comment:

 Those filters are filtering an empty string.

 Its designed to allow plugins to take over the handling for the said
 function.

 If the filter returns data, Then the functions will return that instead,
 else, the function continues as normal.

 The reasoning behind passing an empty string, is because its filtering on
 the empty string NOT on $attr (Which is just the context of the filter)

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


More information about the wp-trac mailing list