[wp-hackers] get_queried_object_id

Haluk Karamete halukkaramete at gmail.com
Wed Jan 29 22:41:42 UTC 2014


In what situations does the queried_object_id becomes not available?

In query.php, we have this;

3325        function get_queried_object_id() {
3326                $this->get_queried_object();
3327
3328                if ( isset($this->queried_object_id) ) {
3329                        return $this->queried_object_id;
3330                }
3331
3332                return 0;
3333        }
3334

So under which circumstances does this return 0?

thanks


More information about the wp-hackers mailing list