Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1981 closed defect (bug) (fixed)

Unable to disable comments when writing a post

Reported by: viper007bond's profile Viper007Bond Owned by:
Milestone: Priority: high
Severity: major Version: 2.0
Component: Administration Keywords: bg|has-patch
Focuses: Cc:


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 (1)

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

Download all attachments as: .zip

Change History (4)

17 years ago

Fixes (hopefully) this ticket

#1 @Viper007Bond
17 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.

#2 @Viper007Bond
17 years ago

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

Seems to have been fixed, although it seems to now be doing it for pings/trackbacks, but that's another issue.

#3 @Viper007Bond
17 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.