From ef3d64ccd9e6f7301ddf5f02247db77ab1dff0d8 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: http://core.svn.wordpress.org/trunk@24028 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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);