Add posts_join filter.

git-svn-id: https://develop.svn.wordpress.org/trunk@1905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-12-01 06:52:26 +00:00
parent 63add842a8
commit 61ce5ed685
1 changed files with 1 additions and 0 deletions

View File

@ -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']) {