mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-01 00:10:36 +01:00
Fix from TheJason for duplicate entries when cats are specified.
git-svn-id: http://svn.automattic.com/wordpress/trunk@756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bc5519d97b
commit
72135edb2b
@ -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