WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#541 closed defect (bug) (fixed)

is_date() returns TRUE for permalinks

Reported by: MC_incubus Owned by: ryan
Milestone: Priority: normal
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:

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)

comment:1 @MC_incubus10 years ago

  • Patch set to No

comment:2 @ryan10 years ago

  • Owner changed from anonymous to rboren
  • Status changed from new to assigned

comment:3 @ryan10 years ago

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

comment:4 @ryan10 years ago

  • fixed_in_version set to 1.3
  • Resolution changed from 10 to 20
  • Status changed from assigned to closed

comment:5 @ryan10 years ago

Reworked query precedence. See parse_query() in classes.php.

Note: See TracTickets for help on using tickets.