[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
Tue Sep 20 11:16:51 UTC 2011


#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:  3.3
Component:  Comments      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by solarissmoke):

 I think we should be checking whether the post type supports comments
 before setting the comment status to `default_comment_status`, and if it
 doesn't, set it to closed.

 I'm thinking in particular of older themes which don't use
 `post_type_supports()` in their comment handling code. They could get
 confused if comments are open on a post type that doesn't support
 comments.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13473#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list