From c0f2a493ee2f3e0fa1f10565b5f807990a97f19c Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 6 May 2009 01:42:43 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index 0a1fa42c2..68e931315 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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');