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:
parent
84280671d4
commit
d040cc1347
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue