[wp-trac] [WordPress Trac] #22590: get_post_class() do not set 'sticky' class in administration posts table
WordPress Trac
noreply at wordpress.org
Tue Nov 27 00:35:49 UTC 2012
#22590: get_post_class() do not set 'sticky' class in administration posts table
---------------------------------------+------------------------------
Reporter: corsonr | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.4.2
Severity: minor | Resolution:
Keywords: needs-patch needs-testing |
---------------------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> get_post_class() does set a 'sticky' class to sticky post on the frontend
> but not in the administration. So, there's no way to differentiate a
> sticky post from another non-sticky post excepted the span element to its
> right.
>
> Adding something similar to this fix the problem:
>
> // sticky for Sticky Posts in administration
> if ( is_sticky($post->ID) && is_admin() )
> $classes[] = 'post-sticky';
New description:
get_post_class() does set a 'sticky' class to sticky post on the frontend
but not in the administration. So, there's no way to differentiate a
sticky post from another non-sticky post excepted the span element to its
right.
Adding something similar to this fix the problem:
{{{
// sticky for Sticky Posts in administration
if ( is_sticky($post->ID) && is_admin() )
$classes[] = 'post-sticky';
}}}
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22590#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list