Changeset 1759 for trunk/wp-includes/classes.php
- Timestamp:
- 10/08/2004 08:06:21 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/classes.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r1728 r1759 66 66 } 67 67 68 if ('' != $qv['static'] || '' != $qv['pagename'] || '' != $qv['page_id']) { 69 $this->is_page = true; 70 $this->is_single = false; 71 } 72 68 73 if ('' != $qv['second']) { 69 74 $this->is_time = true; … … 144 149 } 145 150 146 // single, date, and search override category.147 if ($this->is_single || $this->is_ date || $this->is_search) {151 // single, page, date, and search override category. 152 if ($this->is_single || $this->is_page || $this->is_date || $this->is_search) { 148 153 $this->is_category = false; 149 154 } … … 161 166 if ('' != $qv['feed']) { 162 167 $this->is_feed = true; 163 }164 165 if ('' != $qv['static'] || '' != $qv['pagename']) {166 $this->is_page = true;167 $this->is_single = false;168 168 } 169 169 … … 268 268 $where .= " AND post_name = '" . $q['name'] . "'"; 269 269 } else if ('' != $q['pagename']) { 270 // If pagename is set, set static to true and set name to pagename.271 270 $q['pagename'] = sanitize_title($q['pagename']); 272 271 $q['name'] = $q['pagename']; 273 $q['static'] = true;274 272 $where .= " AND post_name = '" . $q['pagename'] . "'"; 275 273 } … … 285 283 $q['p'] = intval($q['p']); 286 284 $where = ' AND ID = '.$q['p']; 285 } 286 287 if (($q['page_id'] != '') && ($q['page_id'] != 'all')) { 288 $q['page_id'] = intval($q['page_id']); 289 $q['p'] = $q['page_id']; 290 $where = ' AND ID = '.$q['page_id']; 287 291 } 288 292 … … 456 460 } 457 461 458 if ( '' != $q['static']) {462 if (is_page()) { 459 463 $where .= ' AND (post_status = "static"'; 460 464 } else {
Note: See TracChangeset
for help on using the changeset viewer.