WordPress.org

Make WordPress Core

Changeset 4227


Ignore:
Timestamp:
09/25/06 01:51:37 (8 years ago)
Author:
ryan
Message:

Preserve is_feed setting when handling a 404. Props skeltoac. fixes #3019

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/classes.php

    r3958 r4227  
    247247 
    248248    function set_404() { 
     249        $is_feed = $this->is_feed; 
     250 
    249251        $this->init_query_flags(); 
    250         $this->is_404 = true;    
     252        $this->is_404 = true; 
     253 
     254        $this->is_feed = $is_feed; 
    251255    } 
    252256     
Note: See TracChangeset for help on using the changeset viewer.