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:
parent
0f1ddbad22
commit
16bbe9b57b
|
@ -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';
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue