mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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'] ] ) )
|
if ( isset( $slugs[ $qvs['post_format'] ] ) )
|
||||||
$qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ];
|
$qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ];
|
||||||
$tax = get_taxonomy( 'post_format' );
|
$tax = get_taxonomy( 'post_format' );
|
||||||
$qvs['post_type'] = $tax->object_type;
|
if ( ! is_admin() )
|
||||||
|
$qvs['post_type'] = $tax->object_type;
|
||||||
return $qvs;
|
return $qvs;
|
||||||
}
|
}
|
||||||
add_filter( 'request', '_post_format_request' );
|
add_filter( 'request', '_post_format_request' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user