[wp-trac] [WordPress Trac] #33516: WordPress Ver 4.3 broke "Allow Comments"

WordPress Trac noreply at wordpress.org
Sun Aug 23 13:19:04 UTC 2015


#33516: WordPress Ver 4.3 broke "Allow Comments"
-----------------------------+----------------------
 Reporter:  SilvaLau         |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Comments         |     Version:  4.3
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------

Comment (by SergeyBiryukov):

 See also https://make.wordpress.org/core/2015/07/06/comments-are-now-
 turned-off-on-pages-by-default/.

 Here's a snippet you can add to you child theme's `functions.php` file or
 turn into a plugin:
 {{{
 function wp33516_open_comments_for_pages( $status, $post_type,
 $comment_type ) {
         if ( 'page' === $post_type ) {
                 $status = 'open';
         }

         return $status;
 }
 add_filter( 'get_default_comment_status',
 'wp33516_open_comments_for_pages', 10, 3 );
 }}}

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


More information about the wp-trac mailing list