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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-09-05 03:11:04 +00:00
parent 64382fbdc9
commit 1760555e8b
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));
}