From 7c84f63300a7c3ebc82d581dcf372abed63b0fc8 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Tue, 3 Feb 2004 17:23:06 +0000 Subject: [PATCH] More category filtering for specific posts git-svn-id: https://develop.svn.wordpress.org/trunk@828 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-blog-header.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 53c377479e..35aead33d8 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -145,8 +145,13 @@ foreach ($dogs as $catt) { $cache_categories[$catt->cat_ID] = $catt; } -// Bypass cat checks if fetching specific posts -if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || (intval($year) || intval($p))) { +if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || + // Bypass cat checks if fetching specific posts + ( + intval($year) || intval($monthnum) || intval($day) || intval($w) || + intval($p) || !empty($name) || !empty($s) + ) + ) { $whichcat=''; } else { $cat = ''.urldecode($cat).'';