Changeset 11452
- Timestamp:
- 05/25/2009 05:36:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r11450 r11452 2115 2115 } 2116 2116 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) "; 2118 2118 foreach ( $statuswheres as $index => $statuswhere ) 2119 2119 $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.