[wp-trac] [WordPress Trac] #17019: context arg for WP_Query filter application
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 8 17:34:22 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):
Actually, no, manually assigned contexts wouldn't solve the problem I'm
thinking about:
The same hook runs both on '/', as well as on '/tag/a-tag', as well as on
'/a-page' etc.
To filter those queries, you would need a dynamically generated context,
which is what we already have, in the form of
[http://codex.wordpress.org/Conditional_Tags conditional tags].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17019#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list