Changeset 55847 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 05/22/2023 07:11:36 PM (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r55822 r55847 108 108 */ 109 109 public $current_post = -1; 110 111 /** 112 * Whether the caller is before the loop. 113 * 114 * @since 6.3.0 115 * @var bool 116 */ 117 public $before_loop = true; 110 118 111 119 /** … … 518 526 $this->current_post = -1; 519 527 $this->in_the_loop = false; 528 $this->before_loop = true; 520 529 unset( $this->request ); 521 530 unset( $this->post ); … … 3632 3641 3633 3642 $this->in_the_loop = true; 3643 $this->before_loop = false; 3634 3644 3635 3645 if ( -1 == $this->current_post ) { // Loop has just started. … … 3672 3682 $this->rewind_posts(); 3673 3683 } elseif ( 0 === $this->post_count ) { 3684 $this->before_loop = false; 3685 3674 3686 /** 3675 3687 * Fires if no results are found in a post query.
Note: See TracChangeset
for help on using the changeset viewer.