Make WordPress Core

Changeset 11452


Ignore:
Timestamp:
05/25/2009 05:36:48 AM (16 years ago)
Author:
ryan
Message:

Restore LEFT JOIN for post_status_join. fixes #9851 see #9720

File:
1 edited

Legend:

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

    r11450 r11452  
    21152115            }
    21162116            if ( $post_status_join ) {
    2117                 $join .= " JOIN $wpdb->posts AS p2 ON ($wpdb->posts.post_parent = p2.ID) ";
     2117                $join .= " LEFT JOIN $wpdb->posts AS p2 ON ($wpdb->posts.post_parent = p2.ID) ";
    21182118                foreach ( $statuswheres as $index => $statuswhere )
    21192119                    $statuswheres[$index] = "($statuswhere OR ($wpdb->posts.post_status = 'inherit' AND " . str_replace($wpdb->posts, 'p2', $statuswhere) . "))";
Note: See TracChangeset for help on using the changeset viewer.