Commits

Doug Stewart  committed c06fa7e

Removing WPTRT-disallowed "Comments are disabled" strings from single page views.

  • Participants
  • Parent commits f5d9e13

Comments (0)

Files changed (3)

File README.markdown

 * Version 1.2.1
 	* **Issues Fixed**
 		* Correctly styling single page title display to use H1
-		*
+		* Single page view w/comments disabled no longer displaying comments closed message
 * Version 1.2
 	* **Issues Fixed**
 		* `wp_footer()` call moved to right before </body>
 ### KNOWN ISSUES ###
 * Version 1.2
 	* <del>Page titles incorrectly using unstyled H2 for title.</del>
+	* <del>Pages with closed comments incorrectly displaying "Comments are closed".</del>
 * Version 1.1.1 aka "The Theme Review One" (taken from the [initial theme review](http://themes.trac.wordpress.org/ticket/4336#comment:3))
 	* <del>Posts with no titles must still include a permalink to the single post view. The recommended practice is to place the permalink on the post date as well.</del>
 	* <del>You must provide styling for heading elements (&lt;h2&gt; - &lt;h6&gt;), blockquotes, tables, definition lists, ordered lists and unordered lists.</del>
 <div id="wrapper">
 	<div id="lb-content">
 		<?php get_template_part( 'theloop' ); ?>
-		<?php comments_template(); ?>
+		<?php if( comments_open() ) comments_template(); ?>
 	</div> <!-- #lb-content -->
 </div> <!-- #wrapper -->
 <?php get_sidebar(); ?>
 				wp_link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); 
 				?>
 				<div class="postinfo">
-					<span class="postmeta">Posted by <?php the_author(); ?> on <a href="<?php the_permalink(); ?>"><?php the_time('F jS, Y'); ?></a> <?php if (!is_single()){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>
+					<span class="postmeta">Posted by <?php the_author(); ?> on <a href="<?php the_permalink(); ?>"><?php the_time('F jS, Y'); ?></a> <?php if (!is_single() && !is_page() ){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>
 					<?php if( !is_page() ) { ?>
 					<span class="postcats">Posted in <?php the_category(', '); ?></span>
 					<?php } ?>