Make WordPress Core

Ticket #45343: 45343.patch

File 45343.patch, 755 bytes (added by mukesh27, 7 years ago)

Patch

  • wordpress/wp-includes/class-wp-query.php

    diff -Naur wordpress/wp-includes/class-wp-query.php wordpress/wp-includes/class-wp-query.php
     
    27632763                        $this->posts = array_map( 'intval', $this->posts );
    27642764                        $this->post_count = count( $this->posts );
    27652765                        $this->set_found_posts( $q, $limits );
     2766                        $post = $this->next_post();
    27662767
    27672768                        return $this->posts;
    27682769                }
     
    27742775
    27752776                        $this->post_count = count( $this->posts );
    27762777                        $this->set_found_posts( $q, $limits );
    2777 
     2778                        $post = $this->next_post();
     2779                       
    27782780                        $r = array();
    27792781                        foreach ( $this->posts as $key => $post ) {
    27802782                                $this->posts[ $key ]->ID = (int) $post->ID;