]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentythirteen/content.php
WordPress 3.9.2
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / content.php
index 4f61b220665fd2fde4b1dcf5d9cb1fc29ffac472..c34174043830b6f459df8dc9bce85194185d51b3 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 /**
- * The default template for displaying content. Used for both single and index/archive/search.
+ * The default template for displaying content
+ *
+ * Used for both single and index/archive/search.
  *
  * @package WordPress
  * @subpackage Twenty_Thirteen
@@ -10,7 +12,7 @@
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <header class="entry-header">
-               <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
+               <?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
                <div class="entry-thumbnail">
                        <?php the_post_thumbnail(); ?>
                </div>