mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 22:29:48 +01:00
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:
parent
c26ac54929
commit
df997de886
@ -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).'';
|
||||
|
Loading…
Reference in New Issue
Block a user