Make WordPress Core

Ticket #21238: 21238.3.diff

File 21238.3.diff, 502 bytes (added by obenland, 13 years ago)

Lets make our lives a little easier and only check for is_home

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