Make WordPress Core

Changeset 3215


Ignore:
Timestamp:
11/28/2005 03:15:48 AM (20 years ago)
Author:
matt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 );
Note: See TracChangeset for help on using the changeset viewer.