Add 'status-sticky' class in get_post_class() for sticky posts in the admin.
props mordauk, netweb. fixes #22590. Built from https://develop.svn.wordpress.org/trunk@29003 git-svn-id: http://core.svn.wordpress.org/trunk@28791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b7a9edd27
commit
2550fb200a
|
@ -451,8 +451,13 @@ function get_post_class( $class = '', $post_id = null ) {
|
|||
}
|
||||
|
||||
// sticky for Sticky Posts
|
||||
if ( is_sticky($post->ID) && is_home() && !is_paged() )
|
||||
$classes[] = 'sticky';
|
||||
if ( is_sticky( $post->ID ) ) {
|
||||
if ( is_home() && ! is_paged() ) {
|
||||
$classes[] = 'sticky';
|
||||
} elseif ( is_admin() ) {
|
||||
$classes[] = 'status-sticky';
|
||||
}
|
||||
}
|
||||
|
||||
// hentry for hAtom compliance
|
||||
$classes[] = 'hentry';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.0-alpha-20140704';
|
||||
$wp_version = '4.0-alpha-20140705';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue