Fallback to the default post type only if it is registed for the taxonomy. Props nacin. see #18785

git-svn-id: https://develop.svn.wordpress.org/trunk@19053 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-10-24 19:10:56 +00:00
parent cc5f01a784
commit 5fecc93721
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;
}