WordPress.org

Make WordPress Core

Ticket #21238: 21238.2.diff

File 21238.2.diff, 524 bytes (added by DrewAPicture, 3 years ago)

Incrememntal, adds is_archive check in content.php

  • 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() && ! is_archive() ) : ?> 
    1313                <div class="featured-post"> 
    1414                        <?php _e( 'Featured post', 'twentytwelve' ); ?> 
    1515                </div>