Add the_post action. Props Denis-de-Bernardy. fixes #6284
git-svn-id: http://svn.automattic.com/wordpress/trunk@11213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
44777c3352
commit
c0f2a493ee
|
@ -2382,6 +2382,7 @@ class WP_Query {
|
|||
$this->in_the_loop = true;
|
||||
$post = $this->next_post();
|
||||
setup_postdata($post);
|
||||
do_action('the_post', $post);
|
||||
|
||||
if ( $this->current_post == 0 ) // loop has just started
|
||||
do_action('loop_start');
|
||||
|
|
Loading…
Reference in New Issue