Don't set post_type QV in _post_format_request() when we're in the admin. props ethitter. fixes #18475.
git-svn-id: https://develop.svn.wordpress.org/trunk@19193 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c57505242
commit
057afbb44b
@ -5223,6 +5223,7 @@ 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' );
|
||||
if ( ! is_admin() )
|
||||
$qvs['post_type'] = $tax->object_type;
|
||||
return $qvs;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user