Add Sticky to list of post states
git-svn-id: https://develop.svn.wordpress.org/trunk@10585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc924291b2
commit
76b84d8c90
|
@ -3244,6 +3244,8 @@ function _post_states($post) {
|
||||||
$post_states[] = __('Draft');
|
$post_states[] = __('Draft');
|
||||||
if ( 'pending' == $post->post_status && 'pending' != $post_status )
|
if ( 'pending' == $post->post_status && 'pending' != $post_status )
|
||||||
$post_states[] = _c('Pending|post state');
|
$post_states[] = _c('Pending|post state');
|
||||||
|
if ( is_sticky($post->ID) )
|
||||||
|
$post_states[] = __('Sticky');
|
||||||
|
|
||||||
$post_states = apply_filters( 'display_post_states', $post_states );
|
$post_states = apply_filters( 'display_post_states', $post_states );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue