]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentytwelve/content.php
WordPress 3.9
[autoinstalls/wordpress.git] / wp-content / themes / twentytwelve / content.php
index daaad3447d62b66811c59e0afbd51eb36af20da6..56493ed0bdf6026b2e7a18c1089cf95f82f948fa 100644 (file)
                </div>
                <?php endif; ?>
                <header class="entry-header">
-                       <?php the_post_thumbnail(); ?>
+                       <?php if ( ! post_password_required() && ! is_attachment() ) :
+                               the_post_thumbnail();
+                       endif; ?>
+
                        <?php if ( is_single() ) : ?>
                        <h1 class="entry-title"><?php the_title(); ?></h1>
                        <?php else : ?>