Fix from TheJason for duplicate entries when cats are specified.
git-svn-id: https://develop.svn.wordpress.org/trunk@756 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6a05550bba
commit
6ab398733b
@ -304,6 +304,7 @@ if (isset($user_ID) && ('' != intval($user_ID)))
|
||||
$where .= " OR post_author = $user_ID AND post_status != 'draft')";
|
||||
else
|
||||
$where .= ')';
|
||||
$where .= " GROUP BY $tableposts.ID";
|
||||
$request = " SELECT $distinct * FROM $tableposts $join WHERE 1=1".$where." ORDER BY post_$orderby $limits";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user