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:
Andrew Nacin 2013-04-18 15:02:30 +00:00
parent 2bcf4b8802
commit ef3d64ccd9
1 changed files with 1 additions and 1 deletions

View File

@ -1502,7 +1502,7 @@ function _post_states($post) {
if ( is_sticky($post->ID) )
$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) ) {
$state_count = count($post_states);