mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user