[wp-trac] [WordPress Trac] #31168: Comments should be turned off on pages by default

WordPress Trac noreply at wordpress.org
Mon Jun 29 04:18:15 UTC 2015

#31168: Comments should be turned off on pages by default
 Reporter:  melchoyce                |       Owner:  valendesigns
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.3
Component:  Comments                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
Changes (by valendesigns):

 * keywords:  needs-patch => has-patch needs-testing


 The latest patch adds two new functions and filters that we can use to get
 & set the default comment and ping status on a per `post_type` basis. It
 also includes four unit tests, two of which would fail before the patch is
 applied as page & cpt do not support a `closed` default value when left
 empty in `wp_insert_post` or when the `post_type` does not support
 comments or trackbacks.

 With this patch we can explicitly set the defaults on custom post types
 with a filter and still allow support for comments and trackbacks on those
 post types without having them set to `open` by default. Something I've
 personally been wanting for a while.

 Whomever is still interested in seeing this move forward, please test and
 let me know your thoughts ASAP.

Ticket URL: <https://core.trac.wordpress.org/ticket/31168#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list