From 0037ea35ec0bba3d75ec9fd1480d9b574680fc0a Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Tue, 3 Feb 2004 16:04:04 +0000 Subject: [PATCH] Bypass category filtering if fetching specific posts git-svn-id: https://develop.svn.wordpress.org/trunk@826 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-blog-header.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 3855ac0245..4e45897ec6 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -145,7 +145,8 @@ foreach ($dogs as $catt) { $cache_categories[$catt->cat_ID] = $catt; } -if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) { +// Bypass cat checks if fetching specific posts +if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || (intval($year) || intval($p))) { $whichcat=''; } else { $cat = ''.urldecode($cat).''; @@ -341,7 +342,7 @@ if ($preview) { } // error_log("$request"); -// echo $request; +echo $request; $posts = $wpdb->get_results($request); // No point in doing all this work if we didn't match any posts.