Changeset 3215

Show
Ignore:
Timestamp:
11/28/05 03:15:48 (3 years ago)
Author:
matt
Message:

Don't show 404s for empty cats, fixes #1969

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/classes.php

    r3206 r3215  
    16211621        // or if the request was a regular query string request rather than a 
    16221622        // permalink request. 
    1623         if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) { 
     1623        if ( (0 == count($wp_query->posts)) && !is_404() && !is_category() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) { 
    16241624            $wp_query->set_404(); 
    16251625            status_header( 404 );