IMP: Add a check for post type support in comments.php

Posted in: Newsmag
Post count: 44

Hello All,

We need to add a conditional check in comments.php for comments_open or if a post type supports comments. I have a post type that doesn’t support comments but I can still see the comments form. Although I can make this change in the child theme, this should be part of the core by default.

if(td_util::get_option('tds_disable_comments_sidewide') == '' && comments_open() && post_type_supports( get_post_type(), 'comments' )) { ?>

Post count: 780

Hi,

I’ve added this to our issue tracker, it’s an issue in all of our themes and it will be fixed.

Thanks for reporting this 🙂

Radu O.

Post count: 44

Glad to be of some help 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.