Add the_post action. Props Denis-de-Bernardy. fixes #6284
git-svn-id: https://develop.svn.wordpress.org/trunk@11213 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7f510a5bfb
commit
7e1eb1289d
|
@ -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