From e97159bc63a0a53835714a1594a8c6677074d48a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 18 Apr 2013 15:02:30 +0000 Subject: [PATCH] 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 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 540df71947..e74e51a1b2 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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);