Pass $post to display_post_states filter (in _post_states()).

git-svn-id: https://develop.svn.wordpress.org/trunk@24028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-04-18 15:02:30 +00:00
parent b0706fba10
commit e97159bc63
+1 -1
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);