Opened 12 years ago
Closed 12 years ago
#30327 closed enhancement (fixed)
Pass query reference to "the_post" action
| Reported by: | tlovett1 | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Query | Version: | 4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
An action is fired in WP_Query::setup_postdata "the_post". Right now it is passed a reference to the current post. It would be nice to also pass a reference to the current query so someone can hook onto this action and do things with the post depending on the type of query.
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)
Patch that passes reference to current query to "the_post"