Make WordPress Core

Ticket #31355: 31355.diff

File 31355.diff, 440 bytes (added by jazbek, 9 years ago)

Don't initialize queried object id to 0 when getting it

  • wp-includes/query.php

     
    39263926                        return $this->queried_object;
    39273927
    39283928                $this->queried_object = null;
    3929                 $this->queried_object_id = 0;
     3929                $this->queried_object_id = null;
    39303930
    39313931                if ( $this->is_category || $this->is_tag || $this->is_tax ) {
    39323932                        if ( $this->is_category ) {