WordPress.org

Make WordPress Core

Changeset 6035


Ignore:
Timestamp:
09/05/07 03:11:04 (8 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r5979 r6035  
    5050// Format strings for display. 
    5151$filters = array('comment_author', 'term_name', 'term_description', 'link_name', 'link_description', 
    52     'link_notes', 'bloginfo'); 
     52    'link_notes', 'bloginfo', 'wp_title'); 
    5353foreach ( $filters as $filter ) { 
    5454    add_filter($filter, 'wptexturize'); 
  • trunk/wp-includes/query.php

    r6026 r6035  
    444444        $qv = &$this->query_vars; 
    445445 
    446         if ( ! empty($qv['robots']) ) { 
     446        if ( ! empty($qv['robots']) ) 
    447447            $this->is_robots = true; 
    448             return; 
    449         } 
    450  
    451         if ('404' == $qv['error']) { 
    452             $this->is_404 = true; 
    453             if ( !empty($query) ) { 
    454                 do_action_ref_array('parse_query', array(&$this)); 
    455             } 
    456             return; 
    457         } 
    458448 
    459449        $qv['p'] =  (int) $qv['p']; 
     
    709699        $this->is_singular = $this->is_single || $this->is_page || $this->is_attachment; 
    710700        // Done correcting is_* for page_on_front and page_for_posts 
     701 
     702        if ('404' == $qv['error']) 
     703            $this->set_404(); 
    711704 
    712705        if ( !empty($query) ) 
Note: See TracChangeset for help on using the changeset viewer.