Changeset 56549 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 09/09/2023 09:26:01 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r56513 r56549 3471 3471 array_splice( $this->posts, $sticky_offset, 0, array( $sticky_post ) ); 3472 3472 // Increment the sticky offset. The next sticky will be placed at this offset. 3473 $sticky_offset++;3473 ++$sticky_offset; 3474 3474 // Remove post from sticky posts array. 3475 3475 $offset = array_search( $sticky_post->ID, $sticky_posts, true ); … … 3501 3501 foreach ( $stickies as $sticky_post ) { 3502 3502 array_splice( $this->posts, $sticky_offset, 0, array( $sticky_post ) ); 3503 $sticky_offset++;3503 ++$sticky_offset; 3504 3504 } 3505 3505 } … … 3621 3621 public function next_post() { 3622 3622 3623 $this->current_post++;3623 ++$this->current_post; 3624 3624 3625 3625 /** @var WP_Post */ … … 3731 3731 */ 3732 3732 public function next_comment() { 3733 $this->current_comment++;3733 ++$this->current_comment; 3734 3734 3735 3735 /** @var WP_Comment */
Note: See TracChangeset
for help on using the changeset viewer.