Ticket #3891: query.php.diff
| File query.php.diff, 1.0 kB (added by g30rg3x, 2 years ago) |
|---|
-
wp-includes/query.php
old new 392 392 ); 393 393 394 394 foreach ($keys as $key) { 395 if ( !isset($array[$key]))395 if ( (!isset($array[$key])) || (is_array($array[$key])) ) 396 396 $array[$key] = ''; 397 397 } 398 398 … … 507 507 $this->is_date = true; 508 508 } 509 509 510 if (empty($qv['cat']) || ($qv['cat'] == '0') ) {510 if (empty($qv['cat']) || ($qv['cat'] == '0') || (is_array($qv['cat']))) { 511 511 $this->is_category = false; 512 512 } else { 513 513 if (stristr($qv['cat'],'-')) { … … 838 838 839 839 // Category stuff 840 840 841 if ((empty($q['cat'])) || ($q['cat'] == '0') || 841 if ((empty($q['cat'])) || ($q['cat'] == '0') || (is_array($q['cat'])) || 842 842 // Bypass cat checks if fetching specific posts 843 ( $this->is_single || $this->is_page )) {843 ( $this->is_single || $this->is_page )) { 844 844 $whichcat=''; 845 845 } else { 846 846 $q['cat'] = ''.urldecode($q['cat']).'';
