</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 : ?>