Changeset 59792
- Timestamp:
- 02/09/2025 06:49:51 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r59788 r59792 3753 3753 $this->before_loop = false; 3754 3754 3755 if ( -1 == $this->current_post ) { // Loop has just started.3755 if ( -1 === $this->current_post ) { // Loop has just started. 3756 3756 /** 3757 3757 * Fires once the loop is started. … … 3780 3780 if ( $this->current_post + 1 < $this->post_count ) { 3781 3781 return true; 3782 } elseif ( $this->current_post + 1 == $this->post_count && $this->post_count > 0 ) {3782 } elseif ( $this->current_post + 1 === $this->post_count && $this->post_count > 0 ) { 3783 3783 /** 3784 3784 * Fires once the loop has ended. … … 3789 3789 */ 3790 3790 do_action_ref_array( 'loop_end', array( &$this ) ); 3791 3791 3792 // Do some cleaning up after the loop. 3792 3793 $this->rewind_posts();
Note: See TracChangeset
for help on using the changeset viewer.