WordPress.org

Make WordPress Core

Changeset 17249


Ignore:
Timestamp:
01/11/11 18:30:37 (3 years ago)
Author:
nacin
Message:

Limit post format queries to the post types registered for the taxonomy. see #16149.

File:
1 edited

Legend:

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

    r17228 r17249  
    51565156    if ( isset( $slugs[ $qvs['post_format'] ] ) ) 
    51575157        $qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ]; 
     5158    $tax = get_taxonomy( 'post_format' ); 
     5159    $qvs['post_type'] = $tax->object_type; 
    51585160    return $qvs; 
    51595161} 
Note: See TracChangeset for help on using the changeset viewer.