Opened 10 years ago
Closed 10 years ago
#30327 closed enhancement (fixed)
Pass query reference to "the_post" action
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
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.
Patch that passes reference to current query to "the_post"