Make WordPress Core

Opened 22 years ago

Closed 22 years ago

Last modified 17 years ago

#606 closed defect (bug) (fixed)

is_single() does not work

Reported by: matt Owned by: matt
Priority: normal Milestone:
Component: Template Version:
Severity: major Keywords:
Cc: Focuses:

Description

is_single is not evaluating to true on a fresh CVS install, and thus comments aren't showing. Example:

​http://fresh.wordpress.org/?p=1

Change History (3)

#1 @matt
22 years ago

  • Patch → No

#2 @matt
22 years ago

Var dump:

object(WP_Query)#25 (22) {

post_count=>
int(0)
current_post=>
int(-1)
post=>
NULL
is_single=>
bool(false)
is_page=>
bool(false)
is_archive=>
bool(false)
is_date=>
bool(false)
is_year=>
bool(false)
is_month=>
bool(false)
is_day=>
bool(false)
is_time=>
bool(false)
is_author=>
bool(false)
is_category=>
bool(false)
is_search=>
bool(false)
is_feed=>
bool(false)
is_trackback=>
bool(false)
is_home=>
bool(true)
is_404=>
bool(false)
is_admin=>
bool(false)
is_paged=>
bool(false)
query=>
string(3) "p=1"
query_vars=>
array(1) {

p=>
string(1) "1"

}

}

#3 @matt
22 years ago

  • Owner changed from anonymous to matt
  • Resolution 10 → 20
  • Status new → closed

Half an hour on a damn typo, it had $q instead of $qv.

Note: See TracTickets for help on using tickets.