mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@11452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
beefbcf16c
commit
bd2ed2c190
@ -2114,7 +2114,7 @@ class WP_Query {
|
||||
$statuswheres[] = "(" . join( ' OR ', $p_status ) . ")";
|
||||
}
|
||||
if ( $post_status_join ) {
|
||||
$join .= " JOIN $wpdb->posts AS p2 ON ($wpdb->posts.post_parent = p2.ID) ";
|
||||
$join .= " LEFT JOIN $wpdb->posts AS p2 ON ($wpdb->posts.post_parent = p2.ID) ";
|
||||
foreach ( $statuswheres as $index => $statuswhere )
|
||||
$statuswheres[$index] = "($statuswhere OR ($wpdb->posts.post_status = 'inherit' AND " . str_replace($wpdb->posts, 'p2', $statuswhere) . "))";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user