WordPress.org

Make WordPress Core

Changeset 19193


Ignore:
Timestamp:
11/06/2011 09:15:23 PM (9 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r19117 r19193  
    52245224        $qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ];
    52255225    $tax = get_taxonomy( 'post_format' );
    5226     $qvs['post_type'] = $tax->object_type;
     5226    if ( ! is_admin() )
     5227        $qvs['post_type'] = $tax->object_type;
    52275228    return $qvs;
    52285229}
Note: See TracChangeset for help on using the changeset viewer.