Revert [30036].

Merges [30912] to the 4.1 branch.

see #18035
Built from https://develop.svn.wordpress.org/branches/4.1@30913


git-svn-id: http://core.svn.wordpress.org/branches/4.1@30903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2014-12-16 17:35:46 +00:00
parent b7cb613504
commit b67799149b

View File

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