Make WordPress Core


Ignore:
Timestamp:
08/24/2004 08:43:01 AM (20 years ago)
Author:
rboren
Message:

Template redirection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r1556 r1558  
    1111
    1212    var $is_single = false;
     13    var $is_page = false;
    1314    var $is_archive = false;
    1415    var $is_date = false;
     
    2526    function init () {
    2627        $this->is_single = false;
     28        $this->is_page = false;
    2729        $this->is_archive = false;
    2830        $this->is_date = false;
     
    153155        if ('' != $qv['feed']) {
    154156            $this->is_feed = true;
    155             $this->feed = $qv['feed'];
     157        }
     158
     159        if ('' != $qv['static'] || '' != $qv['pagename']) {
     160            $this->is_page = true;
    156161        }
    157162
    158163        if ( ($this->is_date || $this->is_author || $this->is_category)
    159              && (! $this->is_single)) {
     164             && (! ($this->is_single || $this->is_page)) ) {
    160165            $this->is_archive = true;
    161166        }
    162167
    163         if ( ! ($this->is_archive || $this->is_single || $this->is_search || $this->is_feed)) {
     168        if ( ! ($this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed)) {
    164169            $this->is_home = true;
    165170        }
Note: See TracChangeset for help on using the changeset viewer.