Add posts_join filter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d0742f3227
commit
09330bec21
|
@ -529,6 +529,7 @@ class WP_Query {
|
||||||
|
|
||||||
$where = apply_filters('posts_where', $where);
|
$where = apply_filters('posts_where', $where);
|
||||||
$where .= " GROUP BY $wpdb->posts.ID";
|
$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";
|
$request = " SELECT $distinct * FROM $wpdb->posts $join WHERE 1=1".$where." ORDER BY post_" . $q['orderby'] . " $limits";
|
||||||
|
|
||||||
if ($q['preview']) {
|
if ($q['preview']) {
|
||||||
|
|
Loading…
Reference in New Issue