Changeset 2003
- Timestamp:
- 12/26/04 16:37:55 (4 years ago)
- Files:
-
- trunk/wp-includes/classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/classes.php
r2000 r2003 27 27 var $is_home = false; 28 28 var $is_404 = false; 29 var $is_admin = false; 29 30 30 31 function init () { … … 45 46 $this->is_404 = false; 46 47 $this->is_paged = false; 48 $this->is_admin = false; 47 49 48 50 unset($this->posts); … … 176 178 } 177 179 178 if ( ! ($this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404)) { 180 if (strstr($_SERVER['PHP_SELF'], 'wp-admin/')) { 181 $this->is_admin = true; 182 } 183 184 if ( ! ($this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin)) { 179 185 $this->is_home = true; 180 186 }
