Make WordPress Core


Ignore:
Timestamp:
04/03/2005 05:43:42 AM (20 years ago)
Author:
ryan
Message:

Path info permalinks weren't getting 404 treatment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r2478 r2510  
    184184// request was a regular query string request rather than a permalink request.
    185185if ( (0 == count($posts)) && !is_404() && !is_search()
    186          && !empty($_SERVER['QUERY_STRING']) &&
    187          (false === strpos($_SERVER['REQUEST_URI'], '?')) ) {
     186        && ( isset($rewrite) || (!empty($_SERVER['QUERY_STRING']) &&
     187        (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {
    188188    $wp_query->is_404 = true;
    189189    if ( preg_match('/cgi/', php_sapi_name()) )
     
    232232        exit;
    233233    } else if ( is_archive() && get_archive_template() ) {
     234        echo "here";
    234235        include(get_archive_template());
    235236        exit;
Note: See TracChangeset for help on using the changeset viewer.