[wp-trac] [WordPress Trac] #13473: comment_status should be set to default_comment_status when commentstatusdiv is removed
WordPress Trac
wp-trac at lists.automattic.com
Thu May 20 23:36:24 UTC 2010
#13473: comment_status should be set to default_comment_status when
commentstatusdiv is removed
--------------------------+-------------------------------------------------
Reporter: jimmcq | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Comments | Version:
Severity: normal | Keywords: comments
--------------------------+-------------------------------------------------
When the Comment Status box is removed from the Add/Edit Post screens,
posts should be created with the comment_status set to the value of the
default_comment_status option.
-----
I had hidden the Comment Status box via:
remove_meta_box('commentstatusdiv','post','normal');
and made sure that default_comment_status was set to open:
update_option('default_comment_status', 'open');
After adding a new post it displayed "Comments Off" when I was assuming
that it should have honored the value of default_comment_status.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13473>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list