WordPress.org

Make WordPress Core

Changeset 21844


Ignore:
Timestamp:
09/14/2012 04:26:05 PM (6 years ago)
Author:
nacin
Message:

If update_post_caches() does not receive a post type, glean post types from the individual post objects, rather than assuming 'post'. fixes #20177.

File:
1 edited

Legend:

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

    r21831 r21844  
    45294529        $post_ids[] = $post->ID;
    45304530
    4531     if ( empty($post_type) )
    4532         $post_type = 'post';
     4531    if ( ! $post_type )
     4532        $post_type = 'any';
    45334533
    45344534    if ( $update_term_cache ) {
Note: See TracChangeset for help on using the changeset viewer.