Changeset 11399
- Timestamp:
- 05/19/2009 04:13:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r11392 r11399 2372 2372 * @access public 2373 2373 * @uses $post 2374 * @uses do_action () Calls 'loop_start' if loop has just started2374 * @uses do_action_ref_array() Calls 'loop_start' if loop has just started 2375 2375 */ 2376 2376 function the_post() { … … 2383 2383 2384 2384 if ( $this->current_post == 0 ) // loop has just started 2385 do_action ('loop_start');2385 do_action_ref_array('loop_start', array(&$this)); 2386 2386 } 2387 2387 … … 2393 2393 * @since 1.5.0 2394 2394 * @access public 2395 * @uses do_action () Calls 'loop_start' if loop has just started2395 * @uses do_action_ref_array() Calls 'loop_end' if loop is ended 2396 2396 * 2397 2397 * @return bool True if posts are available, false if end of loop. … … 2401 2401 return true; 2402 2402 } elseif ($this->current_post + 1 == $this->post_count && $this->post_count > 0) { 2403 do_action ('loop_end');2403 do_action_ref_array('loop_end', array(&$this)); 2404 2404 // Do some cleaning up after the loop 2405 2405 $this->rewind_posts();
Note: See TracChangeset
for help on using the changeset viewer.