WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#10322 closed defect (bug) (invalid)

comments_open() doesn't work when there are no comments

Reported by: iwhitcomb Owned by:
Milestone: Priority: high
Severity: normal Version: 2.8
Component: Comments Keywords: reporter-feedback comments open comment_open
Focuses: Cc:

Description

I'm attempting to use the comments_open() function to simply display or hide my comments form in the comments.php file. My problem seems to be that whether I've got comments enabled or disabled on the post the comments_open() function always returns "closed" when there are zero comments on a post.

I checked the database and there doesn't appear to be an issue with the data. Each of my posts are still "open" for commenting.

Change History (4)

comment:1 follow-up: Denis-de-Bernardy5 years ago

  • Keywords reporter-feedback added

might it be related to your making old posts become closed automatically?

comment:2 in reply to: ↑ 1 iwhitcomb5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Replying to Denis-de-Bernardy:

might it be related to your making old posts become closed automatically?

lol I'm a n00b... thanks. I've been beating my head over that one for a couple days now.

comment:3 Denis-de-Bernardy5 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Denis-de-Bernardy5 years ago

  • Milestone 2.8.1 deleted
  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.