Make WordPress Core

Changeset 15672


Ignore:
Timestamp:
09/27/2010 11:48:03 PM (14 years ago)
Author:
scribu
Message:

Do thorough resets in init() and init_query_flags(). Props coffee2code. Fixes #14976

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15652 r15672  
    998998
    999999    /**
     1000     * Set if query is paged
     1001     *
     1002     * @since 1.5.0
     1003     * @access public
     1004     * @var bool
     1005     */
     1006    var $is_paged = false;
     1007
     1008    /**
    10001009     * Set if query is part of administration page.
    10011010     *
     
    10541063    function init_query_flags() {
    10551064        $this->is_single = false;
     1065        $this->is_preview = false;
    10561066        $this->is_page = false;
    10571067        $this->is_archive = false;
     
    10711081        $this->is_home = false;
    10721082        $this->is_404 = false;
     1083        $this->is_comments_popup = false;
    10731084        $this->is_paged = false;
    10741085        $this->is_admin = false;
     
    10891100        unset($this->query);
    10901101        $this->query_vars = array();
     1102        $this->tax_query = array();
     1103        $this->meta_query = array();
    10911104        unset($this->queried_object);
    10921105        unset($this->queried_object_id);
     
    10941107        $this->current_post = -1;
    10951108        $this->in_the_loop = false;
     1109        unset( $this->request );
     1110        unset( $this->post );
     1111        unset( $this->comments );
     1112        unset( $this->comment );
     1113        $this->comment_count = 0;
     1114        $this->current_comment = -1;
     1115        $this->found_posts = 0;
     1116        $this->max_num_pages = 0;
     1117        $this->max_num_comment_pages = 0;
    10961118
    10971119        $this->init_query_flags();
Note: See TracChangeset for help on using the changeset viewer.