WordPress.org

Make WordPress Core

Ticket #18035: 18035.patch

File 18035.patch, 607 bytes (added by jakub.tyrcha, 7 years ago)
  • wp-includes/post-template.php

     
    341341        // post requires password
    342342        if ( post_password_required($post->ID) )
    343343                $classes[] = 'post-password-required';
    344 
     344               
    345345        // sticky for Sticky Posts
    346         if ( is_sticky($post->ID) && is_home() && !is_paged() )
     346        if ( is_sticky($post->ID) && is_home() && !is_paged() && !get_query_var('ignore_sticky_posts') )
    347347                $classes[] = 'sticky';
    348348
    349349        // hentry for hAtom compliance