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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-07-13 21:47:12 +00:00
parent 38ce17e03b
commit e3dcb82e26
1 changed files with 1 additions and 1 deletions

View File

@ -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() )