Opened 21 years ago
Closed 21 years ago
#2256 closed defect (bug) (fixed)
In place editing of query_vars in WP_Query->get_posts()
| Reported by: | m4ttias | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.0 |
| Severity: | normal | Keywords: | bg|has-patch |
| Cc: | Focuses: |
Description
This is a simple two-liner for making WP_Query->get_posts() edit query_vars in place. It simply makes $q a reference instead of a temporary.
With this patch filters called within get_posts() get more information available to them, making them more powerful.
I can't see why this shouldn't be done.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Seems sensible. The benefit is that hooks called in get_posts can access the latest query var array through $wp_query->query_vars.