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

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 8 17:05:14 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 kevinB):

 Replying to [comment:24 scribu]:
 > > apply_filters() is not affected, as the context check is in
 apply_filters_ref_array() - used mainly by WP_Query to the tune of 26 per
 typical query by my count.
 >
 > Not for long: #16661
 >
 Then how about instead making WP_Query call a new function
 apply_query_filters() to support a context check and whatever other query-
 specific filtering issues might emerge?

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


More information about the wp-trac mailing list