Add posts_join filter.
git-svn-id: https://develop.svn.wordpress.org/trunk@1905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
63add842a8
commit
61ce5ed685
@ -529,6 +529,7 @@ class WP_Query {
|
||||
|
||||
$where = apply_filters('posts_where', $where);
|
||||
$where .= " GROUP BY $wpdb->posts.ID";
|
||||
$join = apply_filters('posts_join', $join);
|
||||
$request = " SELECT $distinct * FROM $wpdb->posts $join WHERE 1=1".$where." ORDER BY post_" . $q['orderby'] . " $limits";
|
||||
|
||||
if ($q['preview']) {
|
||||
|
Loading…
Reference in New Issue
Block a user