Make WordPress Core

Ticket #13020: 13020.diff

File 13020.diff, 586 bytes (added by michaelh, 15 years ago)

Otto identified what caused the problem. Dougal Campbell suggested the solution.

  • wp-includes/query.php

     
    20312031                                $post_ids = get_objects_in_term($term_ids, $taxonomy);
    20322032                                if ( !is_wp_error($post_ids) && !empty($post_ids) ) {
    20332033                                        $whichcat .= " AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ") ";
    2034                                         $post_type = 'any';
     2034                                        if ( '' === $post_type ) {
     2035                                                $post_type = 'any';
     2036                                        }
    20352037                                        $q['post_status'] = 'publish';
    20362038                                        $post_status_join = true;
    20372039                                } else {