Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 11 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:


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';
? >

Change History (5)

#1 @MC_incubus
15 years ago

  • Patch set to No

#2 @ryan
15 years ago

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

#3 @ryan
15 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

#4 @ryan
15 years ago

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

#5 @ryan
15 years ago

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

Note: See TracTickets for help on using tickets.