Ticket #1981 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 6 years ago

Unable to disable comments when writing a post

Reported by: Viper007Bond Owned by: anonymous
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

functions-post.php.diff Download (626 bytes) - added by Viper007Bond 6 years ago.
Fixes (hopefully) this ticket

Change History

Fixes (hopefully) this ticket

  • 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.

  • 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.

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.