Make WordPress Core

Changeset 17456


Ignore:
Timestamp:
02/16/2011 04:27:03 PM (14 years ago)
Author:
ryan
Message:

Use ->query instead of . Always kick off the parse_query action. fixes #16545 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/query.php

    r17452 r17456  
    15711571        // Correct is_* for page_on_front and page_for_posts
    15721572        if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') ) {
    1573             $_query = wp_parse_args($query);
     1573            $_query = wp_parse_args($this->query);
    15741574            // pagename can be set and empty depending on matched rewrite rules. Ignore an empty pagename.
    15751575            if ( isset($_query['pagename']) && '' == $_query['pagename'] )
     
    16281628            $this->set_404();
    16291629
    1630         if ( !empty($query) )
    1631             do_action_ref_array('parse_query', array(&$this));
     1630        do_action_ref_array('parse_query', array(&$this));
    16321631    }
    16331632
Note: See TracChangeset for help on using the changeset viewer.