arnabwahid / wordpress-bootstrap

Bootstrap in WordPress theme form - Bootstrap 3.3.1
1.49k stars 556 forks source link

Don't show 'comments are closed' on pages that have comments turned off #217

Closed eoghanmurray closed 10 years ago

eoghanmurray commented 10 years ago

There seems to have been an error in the comment logic in the original import (based on bones). The upshot is that the 'Comments are closed' message gets displayed even if comments are turned off for a page. I think the error was that the 'else' at line 51 snuck in. It was indented so it was hard to see that it incorrectly closes off the outer 'if ( have_comments() )'. Aside: +1 for Python's style of indentation. I've used the twentyfourteen theme as a reference to make this patch.