This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Comment Count+Link shouldn't be displayed when comments aren't open #676
Labels
wontfix
This will not be worked on
Hello,
I noticed when using Disable Comments that disabling comments removed the feed but left behind the count link in the post meta block;
This is because sites can potentially have comments left over in their DB even though they've disabled comments. The code used;
( comments_open() || get_comments_number() )
Should simply use comments_open and not check the comment count, like so;
comments_open()
This is found throughout the site for displaying the link or the comment template, in both cases if comments are closed they should be suppressed.
I'm going to follow this with a quick PR shortly.
Cheers
The text was updated successfully, but these errors were encountered: