Opened 4 years ago
Closed 4 years ago
#9944 closed defect (bug) (fixed)
workflow issue with loop_start, loop_end, the_post hooks
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Query | Version: | |
| Severity: | major | Keywords: | has-patch tested commit |
| Cc: |
Description
Finally got a chance to try these out today, and... there is a slight workflow issue:
add_action('loop_start', array('article_uploader', 'loop_start'));
add_action('the_post', array('article_uploader', 'the_post'));
add_action('loop_end', array('article_uploader', 'loop_end'));
the plugin disables wpautop, among other things, on a per post basis. trouble is, the hooks get fired in the following order:
- the_post
- loop_start
- the_post
- ...
- loop_end
... so we've a workflow issue. patch coming right up.
Attachments (1)
Change History (6)
Denis-de-Bernardy — 4 years ago
- Keywords has-patch tested commit added
Expanding on the above, it also sorts out the various oddities that occurred when I tried inserting a WP_Query in the loop.
Oh, and... just to confirm, it's not needlessly firing loop_start on a 404 either (that being another bug we fixed in 2.8).
Note: See
TracTickets for help on using
tickets.

patch does two things: