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

props jakub.tyrcha, johneckman.
fixes #18035.
Built from https://develop.svn.wordpress.org/trunk@30036


git-svn-id: http://core.svn.wordpress.org/trunk@30036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-10-27 02:16:20 +00:00
parent 0f1ddbad22
commit 16bbe9b57b
2 changed files with 2 additions and 2 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';

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30035';
$wp_version = '4.1-alpha-30036';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.