Make WordPress Core

Changeset 6036


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

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

Location:
branches/2.2/wp-includes
Files:
2 edited

Legend:

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

    r5463 r6036  
    130130add_filter('sanitize_title', 'sanitize_title_with_dashes');
    131131
     132add_filter('wp_title', 'wp_specialchars');
     133
    132134// RSS filters
    133135add_filter('the_title_rss', 'strip_tags');
  • 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.