From cfb7f7fcdf6d0d6d11dc4dee8d04258e92090821 Mon Sep 17 00:00:00 2001 From: David Ensinger Date: Fri, 4 Jan 2013 16:09:37 -0500 Subject: [PATCH] Load comments template only when comments are open or there's at least one comment To be consistent with single.php and to ensure that an empty div (
) isn't outputted when both comments are closed and there aren't any comments. --- image.php | 6 +++++- page.php | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/image.php b/image.php index 342922b6..919c042f 100644 --- a/image.php +++ b/image.php @@ -109,7 +109,11 @@ get_header(); - + diff --git a/page.php b/page.php index c5c1ef30..7cb688f3 100644 --- a/page.php +++ b/page.php @@ -20,7 +20,11 @@ get_header(); ?> - +