mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
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
|
// 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';
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user