Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dellbridge

    (@dellbridge)

    OK, not sure of the drawbacks of this fix so far, but on line 477 of /wp-includes/classes.php (the handle404 function) is the following:

    if ( ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {

    in previous versions the line was

    if ( ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {

    If this is rolled back to the pre-wordpress 3 version then empty listing pages are displayed correctly. Will look into it further, but a little too busy to delve right now.

    Thanks for your help guys!

    Gav

    Thread Starter dellbridge

    (@dellbridge)

    Thanks macmanx, but I’m not sure whether this is the problem. We’re using the ISAPI rewrite module and permalinks on the front end are working perfectly. The only problem is the 404 generated in the admin area, specifically when there are no items for a particular type. This wasn’t happening prior to WordPress 3 with the same server setup.

    Sorry if I’m missing something, I could believe it was some peculiarity of the way ISAPI rewrite works that only affects this section. Just want to make sure there’s nothing I can do with the existing setup first.

Viewing 2 replies - 1 through 2 (of 2 total)