[wp-trac] [WordPress Trac] #23559: Sticky single post page doesn't have .sticky class
WordPress Trac
noreply at wordpress.org
Wed Feb 20 11:34:45 UTC 2013
#23559: Sticky single post page doesn't have .sticky class
-----------------------------+-------------------------
Reporter: sgr33n | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Themes
Version: 3.5.1 | Severity: normal
Keywords: |
-----------------------------+-------------------------
As explained in summary, it's impossible to style a single page for a
sticky post without modifying content.php, why this? it's a behavior
wanted.
wp-includes\post-template.php, line 344:
{{{
// sticky for Sticky Posts
if ( is_sticky($post->ID) && '''is_home()''' && !is_paged() )
$classes[] = 'sticky';
}}}
Thanks :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23559>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list