From ad3eb8f7ab29d8c3b81e319963105a82848b9454 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 24 Oct 2011 19:10:56 +0000 Subject: [PATCH] Fallback to the default post type only if it is registed for the taxonomy. Props nacin. see #18785 git-svn-id: http://svn.automattic.com/wordpress/trunk@19053 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/screen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 717f059ee..096630f00 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -461,7 +461,7 @@ final class WP_Screen { $taxonomy = $_REQUEST['taxonomy']; if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) $post_type = $_REQUEST['post_type']; - else + else if ( is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) $post_type = 'post'; break; }