Opened 18 years ago
Closed 18 years ago
#8650 closed defect (bug) (invalid)
WP_Query::get_posts needs a filter on the query_vars
| Reported by: | AaronCampbell | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
You can filter the WHERE string after it's been assembled by WP_Query::get_posts but you can't filter the query vars that are used to build that string BEFORE it's built. It would be REALLY nice to have that ability, so that a plugin could simply adjust the query vars and still let WP_Query::get_posts build the WHERE (JOIN, etc).
Attachments (2)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adds 'query_vars' filter