クラス WP_Query::have_posts()
2014/12/16
WP_Query::have_posts()
定義ファイル :/blog/wp-includes/query.php 7
1 2 3 4 5 6 7 8 9 10 11 12 | public function have_posts() { if ( $this->current_post + 1 < $this->post_count ) { return true; } elseif ( $this->current_post + 1 == $this->post_count && $this->post_count > 0 ) { do_action_ref_array( 'loop_end', array( &$this ) ); // Do some cleaning up after the loop $this->rewind_posts(); } $this->in_the_loop = false; return false; } |