WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/05/2007 03:13:16 AM (11 years ago)
Author:
ryan
Message:

Don't skip sanitization if 404. Add wp_title display filters.

File:
1 edited

Legend:

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

    r5926 r6036  
    414414        $qv = &$this->query_vars;
    415415
    416         if ( ! empty($qv['robots']) ) {
     416        if ( ! empty($qv['robots']) )
    417417            $this->is_robots = true;
    418             return;
    419         }
    420 
    421         if ('404' == $qv['error']) {
    422             $this->is_404 = true;
    423             if ( !empty($query) ) {
    424                 do_action_ref_array('parse_query', array(&$this));
    425             }
    426             return;
    427         }
    428418
    429419        $qv['p'] =  (int) $qv['p'];
     
    618608        $this->is_singular = $this->is_single || $this->is_page || $this->is_attachment;
    619609        // Done correcting is_* for page_on_front and page_for_posts
     610
     611        if ('404' == $qv['error'])
     612            $this->set_404();
    620613
    621614        if ( !empty($query) )
Note: See TracChangeset for help on using the changeset viewer.