Make WordPress Core

Changeset 15194


Ignore:
Timestamp:
06/10/2010 06:23:08 PM (15 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/loop.php

    r14932 r15194  
    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
     
    8285
    8386                <?php the_excerpt( '' ); ?>
     87<?php endif; ?>
    8488            </div><!-- .entry-content -->
    8589
Note: See TracChangeset for help on using the changeset viewer.