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
This commit is contained in:
ryan 2011-10-24 19:10:56 +00:00
parent 12de7d1e2d
commit ad3eb8f7ab
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}