Pass $post to display_post_states filter (in _post_states()).
git-svn-id: http://core.svn.wordpress.org/trunk@24028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2bcf4b8802
commit
ef3d64ccd9
|
@ -1502,7 +1502,7 @@ function _post_states($post) {
|
||||||
if ( is_sticky($post->ID) )
|
if ( is_sticky($post->ID) )
|
||||||
$post_states['sticky'] = __('Sticky');
|
$post_states['sticky'] = __('Sticky');
|
||||||
|
|
||||||
$post_states = apply_filters( 'display_post_states', $post_states );
|
$post_states = apply_filters( 'display_post_states', $post_states, $post );
|
||||||
|
|
||||||
if ( ! empty($post_states) ) {
|
if ( ! empty($post_states) ) {
|
||||||
$state_count = count($post_states);
|
$state_count = count($post_states);
|
||||||
|
|
Loading…
Reference in New Issue