WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 11 years ago

#606 closed defect (bug) (fixed)

is_single() does not work

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

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
16 years ago

  • Patch set to No

#2 @matt
16 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
16 years ago

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

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

Note: See TracTickets for help on using tickets.