WordPress.org

Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #41446, comment 1


Ignore:
Timestamp:
07/26/2017 12:34:28 PM (4 years ago)
Author:
umangvaghela123
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41446, comment 1

    v4 v5  
    55public function rewind_posts() {
    66        $this->current_post = -1;
    7         if ( isset( $this->posts[0] ) && !empty( $this->post_count ) && $this->post_count > 0  ) {
     7        if ( isset( $this->posts[0] ) && !empty( $this->posts[0] ) && $this->post_count > 0  ) {
    88                $this->post = $this->posts[0];
    99        }