WordPress.org

Make WordPress Core

Ticket #21238: 21238.diff

File 21238.diff, 506 bytes (added by obenland, 3 years ago)

Don't show if is single

  • wp-content/themes/twentytwelve/content.php

     
    99?> 
    1010 
    1111        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    12                 <?php if ( is_sticky() ) : ?> 
     12                <?php if ( is_sticky() && ! is_single() ) : ?> 
    1313                <div class="featured-post"> 
    1414                        <?php _e( 'Featured post', 'twentytwelve' ); ?> 
    1515                </div>