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

git-svn-id: https://develop.svn.wordpress.org/trunk@6035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-09-05 03:11:04 +00:00
parent fba836e57d
commit 85bec38507
2 changed files with 5 additions and 12 deletions

View File

@ -49,7 +49,7 @@ foreach ( $filters as $filter ) {
// Format strings for display.
$filters = array('comment_author', 'term_name', 'term_description', 'link_name', 'link_description',
'link_notes', 'bloginfo');
'link_notes', 'bloginfo', 'wp_title');
foreach ( $filters as $filter ) {
add_filter($filter, 'wptexturize');
add_filter($filter, 'convert_chars');

View File

@ -443,18 +443,8 @@ class WP_Query {
$this->query_vars = $this->fill_query_vars($this->query_vars);
$qv = &$this->query_vars;
if ( ! empty($qv['robots']) ) {
if ( ! empty($qv['robots']) )
$this->is_robots = true;
return;
}
if ('404' == $qv['error']) {
$this->is_404 = true;
if ( !empty($query) ) {
do_action_ref_array('parse_query', array(&$this));
}
return;
}
$qv['p'] = (int) $qv['p'];
$qv['page_id'] = (int) $qv['page_id'];
@ -709,6 +699,9 @@ class WP_Query {
$this->is_singular = $this->is_single || $this->is_page || $this->is_attachment;
// Done correcting is_* for page_on_front and page_for_posts
if ('404' == $qv['error'])
$this->set_404();
if ( !empty($query) )
do_action_ref_array('parse_query', array(&$this));
}