[wp-trac] [WordPress Trac] #9944: workflow issue with loop_start, loop_end, the_post hooks

WordPress Trac wp-trac at lists.automattic.com
Tue May 26 22:39:18 GMT 2009


#9944: workflow issue with loop_start, loop_end, the_post hooks
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan
     Type:  defect (bug)       |      Status:  new 
 Priority:  normal             |   Milestone:  2.8 
Component:  Query              |     Version:      
 Severity:  major              |    Keywords:      
-------------------------------+--------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9944>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list