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