Add posts_join filter.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-12-01 06:52:26 +00:00
parent d0742f3227
commit 09330bec21
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 .= " 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']) {