More category filtering for specific posts

git-svn-id: http://svn.automattic.com/wordpress/trunk@828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-02-03 17:23:06 +00:00
parent c26ac54929
commit df997de886
1 changed files with 7 additions and 2 deletions

View File

@ -145,8 +145,13 @@ foreach ($dogs as $catt) {
$cache_categories[$catt->cat_ID] = $catt; $cache_categories[$catt->cat_ID] = $catt;
} }
// Bypass cat checks if fetching specific posts if ((empty($cat)) || ($cat == 'all') || ($cat == '0') ||
if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || (intval($year) || intval($p))) { // Bypass cat checks if fetching specific posts
(
intval($year) || intval($monthnum) || intval($day) || intval($w) ||
intval($p) || !empty($name) || !empty($s)
)
) {
$whichcat=''; $whichcat='';
} else { } else {
$cat = ''.urldecode($cat).''; $cat = ''.urldecode($cat).'';