Ticket #22089: excerpt-if-present.diff
File excerpt-if-present.diff, 796 bytes (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/content.php
36 36 </div><!-- .entry-summary --> 37 37 <?php else : ?> 38 38 <div class="entry-content"> 39 <?php if ( has_excerpt() && ! is_singular() ) : // Display excerpt only if present ?> 40 <?php the_excerpt(); ?> 41 <?php else : ?> 39 42 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 43 <?php endif; ?> 40 44 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 41 45 </div><!-- .entry-content --> 42 46 <?php endif; ?>