Make WordPress Core

Ticket #37012: 37012.patch

File 37012.patch, 567 bytes (added by nicolasrenard, 7 years ago)
  • template.php

     
    330330                }
    331331        }
    332332
    333         if ( !$post_type_object->hierarchical )
    334                 echo '<div class="sticky">' . (is_sticky($post->ID) ? 'sticky' : '') . '</div>';
     333        echo '<div class="sticky">' . (is_sticky($post->ID) ? 'sticky' : '') . '</div>';
    335334
    336335        if ( post_type_supports( $post->post_type, 'post-formats' ) )
    337336                echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';