mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-01 00:10:36 +01:00
Category fix from TheJason.
git-svn-id: http://svn.automattic.com/wordpress/trunk@746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a43684fd01
commit
8a5c380f95
@ -158,7 +158,7 @@ if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) {
|
||||
$cat_array = explode(' ',$cat);
|
||||
$whichcat .= ' AND (category_id '.$eq.' '.intval($cat_array[0]);
|
||||
for ($i = 1; $i < (count($cat_array)); $i = $i + 1) {
|
||||
$whichcat .= ' '.$andor.' post_category '.$eq.' '.intval($cat_array[$i]);
|
||||
$whichcat .= ' '.$andor.' category_id '.$eq.' '.intval($cat_array[$i]);
|
||||
}
|
||||
$whichcat .= ')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user