WordPress.org

Make WordPress Core

Ticket #13770: 13770.diff

File 13770.diff, 788 bytes (added by zeo, 8 years ago)

Don't show thumbnail and display password form.

  • wp-content/themes/twentyten/loop.php

     
    6666                        </div><!-- .entry-meta -->
    6767
    6868                        <div class="entry-content">
     69<?php if ( post_password_required() ) : ?>
     70                                <?php the_content(); ?>
     71<?php else : ?>
    6972                                <div class="gallery-thumb">
    7073<?php
    7174        $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
     
    8184                                        ); ?></em></p>
    8285
    8386                                <?php the_excerpt( '' ); ?>
     87<?php endif; ?>
    8488                        </div><!-- .entry-content -->
    8589
    8690                        <div class="entry-utility">