Don't reveal gallery content in Twenty Ten when the post is password protected. fixes #13770, props zeo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e13e6254dc
commit
9e65c710fe
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue