#541 closed defect (bug) (fixed)
is_date() returns TRUE for permalinks
| Reported by: | MC_incubus | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
is_date(), at least according to Ryan's into to is_*() functions, should return true on year, month, or day pages. It currently returns true on permalink pages (is_single() pages).
Right now I'm getting around that with this, at the top of date.php
< ?php
if(is_single()) {
include 'index.php';
exit();
}
? >
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
How about if we have is_single trump all others? So, if we have /2004/12/17/post-name/, is_single will be true and is_date, is_year, is_month, and is_day will be false.
edited on: 12-18-04 00:27