Changeset 1490
- Timestamp:
- 07/28/2004 01:59:29 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r1449 r1490 25 25 parse_str($query); 26 26 $this->init(); 27 28 if ('' != $name) { 29 $this->single = true; 30 } 31 32 if (($p != '') && ($p != 'all')) { 33 $this->single = true; 34 } 27 35 28 36 if ('' != $m) { … … 58 66 } 59 67 60 if ('' != $name) {61 $this->single = true;62 }63 64 if (($p != '') && ($p != 'all')) {65 $this->single = true;66 }67 68 68 if (!empty($s)) { 69 69 $this->search = true; 70 70 } 71 71 72 if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || 73 // Bypass cat checks if fetching specific posts 74 ( 75 intval($year) || intval($monthnum) || intval($day) || intval($w) || 76 intval($p) || !empty($name) || !empty($s) 77 ) 78 ) { 72 if (empty($cat) || ($cat == 'all') || ($cat == '0')) { 79 73 $this->category = false; 80 74 } else { … … 88 82 if ('' != $category_name) { 89 83 $this->category = true; 84 } 85 86 // single, date, and search override category. 87 if ($this->single || $this->date || $this->search) { 88 $this->category = false; 90 89 } 91 90
Note: See TracChangeset
for help on using the changeset viewer.