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:
Ryan Boren 2009-05-06 01:42:43 +00:00
parent 7f510a5bfb
commit 7e1eb1289d
1 changed files with 1 additions and 0 deletions

View File

@ -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');