diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-04 09:40:17 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-04 09:40:17 +0000 |
| commit | dff2159b9a60ef198230c8ccf4cec127b5fc5a12 (patch) | |
| tree | 270861ea0148ceb55c4973ef8363ae76de3738a4 /wp-inst/wp-includes/classes.php | |
| parent | b7f07ae4d07cf7e6990b85969575e95d892ac86d (diff) | |
| download | wordpress-mu-dff2159b9a60ef198230c8ccf4cec127b5fc5a12.tar.gz wordpress-mu-dff2159b9a60ef198230c8ccf4cec127b5fc5a12.tar.xz wordpress-mu-dff2159b9a60ef198230c8ccf4cec127b5fc5a12.zip | |
Changes from Core WP. Added tinymce editor and other fixes
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@120 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/classes.php')
| -rw-r--r-- | wp-inst/wp-includes/classes.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/classes.php b/wp-inst/wp-includes/classes.php index 94f3e52..34bf8e3 100644 --- a/wp-inst/wp-includes/classes.php +++ b/wp-inst/wp-includes/classes.php @@ -598,12 +598,16 @@ class WP_Query { $this->in_the_loop = true; $post = $this->next_post(); setup_postdata($post); + + if ( $this->current_post == 0 ) // loop has just started + do_action('loop_start'); } function have_posts() { if ($this->current_post + 1 < $this->post_count) { return true; } elseif ($this->current_post + 1 == $this->post_count) { + do_action('loop_end'); // Do some cleaning up after the loop $this->rewind_posts(); } @@ -1530,4 +1534,4 @@ class WP { } } -?>
\ No newline at end of file +?> |
