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:
Sergey Biryukov 2014-07-05 00:13:14 +00:00
parent 4b7a9edd27
commit 2550fb200a
2 changed files with 8 additions and 3 deletions

View File

@ -451,8 +451,13 @@ function get_post_class( $class = '', $post_id = null ) {
} }
// sticky for Sticky Posts // sticky for Sticky Posts
if ( is_sticky($post->ID) && is_home() && !is_paged() ) if ( is_sticky( $post->ID ) ) {
if ( is_home() && ! is_paged() ) {
$classes[] = 'sticky'; $classes[] = 'sticky';
} elseif ( is_admin() ) {
$classes[] = 'status-sticky';
}
}
// hentry for hAtom compliance // hentry for hAtom compliance
$classes[] = 'hentry'; $classes[] = 'hentry';

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.