From 6e5abae06abfcab774071ccc23bb5b116fa0afd7 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 13 Jul 2010 21:47:12 +0000 Subject: [PATCH] Don't throw 404 in the backend. fixes #14088 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@15409 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 9a136a38c4..f24a6ec289 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -474,7 +474,7 @@ class WP { function handle_404() { global $wp_query; - if ( ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) { + if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) { // Don't 404 for these queries if they matched an object. if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() && !is_paged() ) { if ( !is_404() )