Don't add 'sticky' class in get_post_class() if 'ignore_sticky_posts' query var is set.

props jakub.tyrcha, johneckman.
fixes #18035.

git-svn-id: https://develop.svn.wordpress.org/trunk@30036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-10-27 02:15:35 +00:00
parent cd89f18427
commit b1c3d5eccc
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ function get_post_class( $class = '', $post_id = null ) {
// sticky for Sticky Posts
if ( is_sticky( $post->ID ) ) {
if ( is_home() && ! is_paged() ) {
if ( is_home() && ! is_paged() && ! get_query_var( 'ignore_sticky_posts' ) ) {
$classes[] = 'sticky';
} elseif ( is_admin() ) {
$classes[] = 'status-sticky';