Make WordPress Core

Changeset 3484


Ignore:
Timestamp:
01/25/2006 03:59:41 AM (19 years ago)
Author:
ryan
Message:

404 if category not found. fixes #2123

File:
1 edited

Legend:

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

    r3473 r3484  
    16961696        // or if the request was a regular query string request rather than a
    16971697        // permalink request.
    1698         if ( (0 == count($wp_query->posts)) && !is_404() && !is_category() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {
     1698        if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {
    16991699            $wp_query->set_404();
    17001700            status_header( 404 );
Note: See TracChangeset for help on using the changeset viewer.