[wp-trac] [WordPress Trac] #17019: context arg for WP_Query filter application

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 8 05:26:58 UTC 2011


#17019: context arg for WP_Query filter application
-------------------------+------------------------------
 Reporter:  kevinB       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by scribu):

 To put it another way: you're moving the context check from the callback
 to the caller - apply_filters().

 An if in apply_filters() is called for ''every'' filter, whereas an if in
 the callback is called only for that particular filter.

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


More information about the wp-trac mailing list