Ticket #21238: 21238.diff

File 21238.diff, 506 bytes (added by obenland, 10 months ago)

Don't show if is single

Line 
1Index: wp-content/themes/twentytwelve/content.php
2===================================================================
3--- wp-content/themes/twentytwelve/content.php  (revision 21261)
4+++ wp-content/themes/twentytwelve/content.php  (working copy)
5@@ -9,7 +9,7 @@
6 ?>
7 
8        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
9-               <?php if ( is_sticky() ) : ?>
10+               <?php if ( is_sticky() && ! is_single() ) : ?>
11                <div class="featured-post">
12                        <?php _e( 'Featured post', 'twentytwelve' ); ?>
13                </div>