Don't reveal gallery content in Twenty Ten when the post is password protected. fixes #13770, props zeo.

git-svn-id: https://develop.svn.wordpress.org/trunk@15194 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-06-10 18:23:08 +00:00
parent a53e7e3018
commit 2cee587e18
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,9 @@
</div><!-- .entry-meta -->
<div class="entry-content">
<?php if ( post_password_required() ) : ?>
<?php the_content(); ?>
<?php else : ?>
<div class="gallery-thumb">
<?php
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
@ -81,6 +84,7 @@
); ?></em></p>
<?php the_excerpt( '' ); ?>
<?php endif; ?>
</div><!-- .entry-content -->
<div class="entry-utility">