[wp-trac] [WordPress Trac] #18035: ignore_sticky_posts fails to remove sticky class
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 9 04:08:45 UTC 2011
#18035: ignore_sticky_posts fails to remove sticky class
-------------------------+------------------------------
Reporter: mikkelbreum | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2
Severity: minor | Resolution:
Keywords: needs-patch |
-------------------------+------------------------------
Comment (by dd32):
Judging by the syntax of the get_post_class() function, it does look like
it shouldn't apply in this case:
{{{
345 // sticky for Sticky Posts
346 if ( is_sticky($post->ID) && is_home() && !is_paged() )
347 $classes[] = 'sticky';
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18035#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list