Make WordPress Core

Ticket #18035: 18035.diff

File 18035.diff, 548 bytes (added by johneckman, 12 years ago)

Updated

  • src/wp-includes/post-template.php

     
    436436        }
    437437
    438438        // sticky for Sticky Posts
    439         if ( is_sticky( $post->ID ) ) {
    440                 if ( is_home() && ! is_paged() ) {
     439        if ( is_sticky( $post->ID ) && !get_query_var('ignore_sticky_posts') ) {
     440                if ( is_home() && ! is_paged()  ) {
    441441                        $classes[] = 'sticky';
    442442                } elseif ( is_admin() ) {
    443443                        $classes[] = 'status-sticky';