Opened 4 years ago
Closed 4 years ago
#10322 closed defect (bug) (invalid)
comments_open() doesn't work when there are no comments
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Comments | Version: | 2.8 |
| Severity: | normal | Keywords: | reporter-feedback comments open comment_open |
| 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:
↓ 2
Denis-de-Bernardy — 4 years ago
- Keywords reporter-feedback added
- 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.
- Resolution fixed deleted
- Status changed from closed to reopened
- Milestone 2.8.1 deleted
- Resolution set to invalid
- Status changed from reopened to closed
Note: See
TracTickets for help on using
tickets.

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