Don't set post_type QV in _post_format_request() when we're in the admin. props ethitter. fixes #18475.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-06 21:15:23 +00:00
parent 84280671d4
commit d040cc1347
1 changed files with 2 additions and 1 deletions

View File

@ -5223,7 +5223,8 @@ function _post_format_request( $qvs ) {
if ( isset( $slugs[ $qvs['post_format'] ] ) )
$qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ];
$tax = get_taxonomy( 'post_format' );
$qvs['post_type'] = $tax->object_type;
if ( ! is_admin() )
$qvs['post_type'] = $tax->object_type;
return $qvs;
}
add_filter( 'request', '_post_format_request' );