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

WordPress Trac noreply at wordpress.org
Mon Jun 29 09:23:59 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:
-------------------------------------+---------------------------

Comment (by valendesigns):

 @efegue the previous patch was a global deactivation of comment &
 trackback support for the `page` post type. What this patch does is set
 `comment_status` & `ping_status` to `closed`  for new pages and post types
 that do not support those features. From a UX standpoint you can still
 check the option to display comments and trackbacks on a new page, so you
 will not need a developer to get comments back.

 However, this patch does allow you to filter the default status for other
 post types. So a developer would be able to support comments and
 trackbacks in their custom post type, but have those features default to
 `closed` when a new post is created.

 From my point of view this change is a lot less destructive, or
 potentially confusing, to the user. As well, it give us more control as
 developers to make decisions about our custom post types and how they
 support comments and trackbacks. And finally, we could standardize the
 default values with these new functions in other parts of Core.

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


More information about the wp-trac mailing list