WordPress.org

Make WordPress Core

Changeset 15410


Ignore:
Timestamp:
07/13/2010 09:48:28 PM (8 years ago)
Author:
nacin
Message:

Don't throw 404 in the backend. fixes #14088 for 3.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/classes.php

    r14964 r15410  
    475475        global $wp_query;
    476476
    477         if ( ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {
     477        if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {
    478478            // Don't 404 for these queries if they matched an object.
    479479            if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() && !is_paged() ) {
Note: See TracChangeset for help on using the changeset viewer.