Ticket #1981 (closed defect (bug): fixed)
Unable to disable comments when writing a post
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Administration | Version: | 2.0 |
| Severity: | major | Keywords: | bg|has-patch |
| Cc: |
Description
On both v2.0-Beta 2 and v2.0-RC1, when writing a new post, if I uncheck "Allow Comments" in the "Discussion" box, it doesn't deactivate comments for that post. I have to edit the post after I've published it and untick the "Allow Comments" box again to get it to work.
Attachments
Change History
Viper007Bond — 6 years ago
-
attachment
functions-post.php.diff
added
comment:1
Viper007Bond — 6 years ago
- Keywords bg|has-patch added
Okay, I think this should fix it.
Before, if $_POST['comment_status'] was not set (i.e. the checkbox was not checked), it'd be set to the defualt value for comment status.
comment:2
Viper007Bond — 6 years ago
- Status changed from new to closed
- Resolution set to fixed
Seems to have been fixed, although it seems to now be doing it for pings/trackbacks, but that's another issue.
comment:3
Viper007Bond — 6 years ago
It actually wasn't fixed I don't think, but not it really is thanks to #2445.
Note: See
TracTickets for help on using
tickets.

Fixes (hopefully) this ticket