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:
ryan 2009-05-06 01:42:43 +00:00
parent 44777c3352
commit c0f2a493ee
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');